MCPcopy Index your code
hub / github.com/rawpython/remi / onchange

Method onchange

editor/editor_widgets.py:991–994  ·  view source on GitHub ↗
(self, widget, new_value)

Source from the content-addressed store, hash-verified

989 'input': self.numInput, 'meas': self.dropMeasureUnit})
990
991 def onchange(self, widget, new_value):
992 new_size = str(self.numInput.get_value()) + \
993 str(self.dropMeasureUnit.get_value())
994 self.on_attribute_changed(self, new_size)
995
996 def set_value(self, value):
997 """The value have to be in the form '10px' or '10%', so numeric value plus measure unit

Callers

nothing calls this directly

Calls 2

get_valueMethod · 0.45
on_attribute_changedMethod · 0.45

Tested by

no test coverage detected