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

Method __init__

examples/gauge_app.py:28–37  ·  view source on GitHub ↗
(self, width, height, _min, _max, **kwargs)

Source from the content-addressed store, hash-verified

26class InputGauge(gui.VBox, gui.EventSource):
27
28 def __init__(self, width, height, _min, _max, **kwargs):
29 super(InputGauge, self).__init__(**kwargs)
30 gui.EventSource.__init__(self)
31 self.set_size(width, height)
32 self.gauge = Gauge(width, height, _min, _max)
33 self.gauge.set_value(_min)
34 self.append(self.gauge)
35
36 self.onmousedown.do(self.confirm_value)
37 self.onmousemove.do(self.gauge.onmousemove)
38
39 @gui.decorate_event
40 def confirm_value(self, widget, x, y):

Callers

nothing calls this directly

Calls 6

GaugeClass · 0.85
__init__Method · 0.45
set_sizeMethod · 0.45
set_valueMethod · 0.45
appendMethod · 0.45
doMethod · 0.45

Tested by

no test coverage detected