We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed54a41 commit 7bfc7b4Copy full SHA for 7bfc7b4
1 file changed
examples/display_button_simpletest.py
@@ -42,7 +42,7 @@
42
style=BUTTON_STYLE,
43
fill_color=BUTTON_FILL_COLOR,
44
outline_color=BUTTON_OUTLINE_COLOR,
45
- label="HELLO WORLD",
+ label=BUTTON_LABEL,
46
label_font=terminalio.FONT,
47
label_color=BUTTON_LABEL_COLOR,
48
)
@@ -56,5 +56,7 @@
56
if p:
57
if button.contains(p):
58
button.selected = True
59
+ else:
60
+ button.selected = False # if touch is dragged outside of button
61
else:
- button.selected = False
62
+ button.selected = False # if touch is released
0 commit comments