MCPcopy Create free account
hub / github.com/NSLS2/PyXRF / __init__

Method __init__

pyxrf/gui_module/useful_widgets.py:165–171  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

163 """
164
165 def __init__(self, *args, **kwargs):
166 super().__init__(*args, **kwargs)
167 self.setReadOnly(True)
168 # Set background color the same as for disabled window.
169 p = self.palette()
170 p.setColor(QPalette.Base, p.color(QPalette.Disabled, QPalette.Base))
171 self.setPalette(p)
172
173
174class TextEditReadOnly(QTextEdit):

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected