kopia lustrzana https://github.com/peterhinch/micropython-micro-gui
label.py: Fix color change refresh bug
rodzic
3802038ff2
commit
a940c20fd2
|
@ -47,8 +47,8 @@ class Label(Widget):
|
||||||
elif justify == 2: # Right
|
elif justify == 2: # Right
|
||||||
self.tcol = self.col + self.width - sl
|
self.tcol = self.col + self.width - sl
|
||||||
|
|
||||||
txt = super().value(text) # Sets .draw ensuring refresh
|
txt = super().value(text)
|
||||||
# Redraw even if no text supplied: colors may have changed.
|
self.draw = True # Redraw unconditionally: colors may have changed.
|
||||||
self.invert = invert
|
self.invert = invert
|
||||||
self.fgcolor = self.def_fgcolor if fgcolor is None else fgcolor
|
self.fgcolor = self.def_fgcolor if fgcolor is None else fgcolor
|
||||||
self.bgcolor = self.def_bgcolor if bgcolor is None else bgcolor
|
self.bgcolor = self.def_bgcolor if bgcolor is None else bgcolor
|
||||||
|
|
Ładowanie…
Reference in New Issue