MCPcopy Create free account
hub / github.com/LabPy/lantz / keyPressEvent

Method keyPressEvent

lantz/ui/widgets.py:762–765  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

760 _WRAPPED = (QtGui.QDoubleSpinBox, )
761
762 def keyPressEvent(self, event):
763 super().keyPressEvent(event)
764 if self._units and event.text() == 'u':
765 self.change_units(request_new_units(self.value()))
766
767 def bind_feat(self, feat):
768 super().bind_feat(feat)

Callers

nothing calls this directly

Calls 4

change_unitsMethod · 0.95
valueMethod · 0.95
request_new_unitsFunction · 0.85
keyPressEventMethod · 0.45

Tested by

no test coverage detected