Skip to content

Commit 99f81b1

Browse files
authored
Merge pull request #11 from jpecor/patch-1
Update to fill/outline color check
2 parents dc7ef5d + d329cd4 commit 99f81b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_button.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def __init__(self, *, x, y, width, height, name=None, style=RECT,
112112
if self.selected_outline is None and outline_color is not None:
113113
self.selected_outline = (~self.outline_color) & 0xFFFFFF
114114

115-
if outline_color or fill_color:
115+
if (outline_color is not None) or (fill_color is not None):
116116
if style == Button.RECT:
117117
self.body = Rect(x, y, width, height,
118118
fill=self.fill_color, outline=self.outline_color)

0 commit comments

Comments
 (0)