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

Method __init__

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

Source from the content-addressed store, hash-verified

193 """
194
195 def __init__(self, *args, **kwargs):
196 super().__init__(*args, **kwargs)
197 text = self.text()
198 font = self.font()
199
200 fm = QFontMetrics(font)
201 text_width = fm.width(text) + 6
202 self.setFixedWidth(text_width)
203
204
205class PushButtonNamed(QPushButton):

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected