kopia lustrzana https://github.com/peterhinch/micropython-micro-gui
Fix button background color rendering, Cannot Find BGCOLOR symbol anywhere
rodzic
4aab4c1dd1
commit
cfbe5961aa
|
@ -55,7 +55,7 @@ class Button(Widget):
|
||||||
h = self.height
|
h = self.height
|
||||||
if not self.visible: # erase the button
|
if not self.visible: # erase the button
|
||||||
display.usegrey(False)
|
display.usegrey(False)
|
||||||
display.fill_rect(x, y, w, h, BGCOLOR)
|
display.fill_rect(x, y, w, h, self.bgcolor)
|
||||||
return
|
return
|
||||||
super().show() # Blank rectangle containing button
|
super().show() # Blank rectangle containing button
|
||||||
if self.shape == CIRCLE: # Button coords are of top left corner of bounding box
|
if self.shape == CIRCLE: # Button coords are of top left corner of bounding box
|
||||||
|
|
Ładowanie…
Reference in New Issue