kopia lustrzana https://github.com/peterhinch/micropython-micro-gui
Address PR feedback
rodzic
2df7d1b0ef
commit
47cade1c20
|
@ -25,8 +25,7 @@ class Slider(LinearIO):
|
||||||
callback=dolittle, args=[], value=0.0, active=True,
|
callback=dolittle, args=[], value=0.0, active=True,
|
||||||
min_delta=0.01, max_delta=0.1):
|
min_delta=0.01, max_delta=0.1):
|
||||||
width &= 0xfe # ensure divisible by 2
|
width &= 0xfe # ensure divisible by 2
|
||||||
super().__init__(writer, row, col, height, width, fgcolor, bgcolor, bdcolor, value, active, prcolor,
|
super().__init__(writer, row, col, height, width, fgcolor, bgcolor, bdcolor, value, active, prcolor, min_delta, max_delta)
|
||||||
min_delta = min_delta, max_delta = max_delta)
|
|
||||||
super()._set_callbacks(callback, args)
|
super()._set_callbacks(callback, args)
|
||||||
self.divisions = divisions
|
self.divisions = divisions
|
||||||
self.legends = legends
|
self.legends = legends
|
||||||
|
@ -101,8 +100,7 @@ class HorizSlider(LinearIO):
|
||||||
callback=dolittle, args=[], value=0.0, active=True,
|
callback=dolittle, args=[], value=0.0, active=True,
|
||||||
min_delta=0.01, max_delta=0.1):
|
min_delta=0.01, max_delta=0.1):
|
||||||
height &= 0xfe # ensure divisible by 2
|
height &= 0xfe # ensure divisible by 2
|
||||||
super().__init__(writer, row, col, height, width, fgcolor, bgcolor, bdcolor, value, active, prcolor,
|
super().__init__(writer, row, col, height, width, fgcolor, bgcolor, bdcolor, value, active, prcolor, min_delta, max_delta)
|
||||||
min_delta = min_delta, max_delta = max_delta)
|
|
||||||
super()._set_callbacks(callback, args)
|
super()._set_callbacks(callback, args)
|
||||||
self.divisions = divisions
|
self.divisions = divisions
|
||||||
self.legends = legends
|
self.legends = legends
|
||||||
|
|
Ładowanie…
Reference in New Issue