Skip to content

Commit 74cd839

Browse files
authored
Merge pull request #8 from makermelissa/master
Improvements to Simple Test
2 parents 604932b + 3c8065b commit 74cd839

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

examples/display_button_simpletest.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
for i, filename in enumerate(fonts):
2020
fonts[i] = cwd+"/fonts/"+filename
2121
print(fonts)
22-
THE_FONT = "/fonts/Chicago-12.bdf"
22+
THE_FONT = "/fonts/Arial-12.bdf"
2323
DISPLAY_STRING = "Button Text"
2424

2525
# Make the display context
@@ -74,29 +74,26 @@
7474
buttons.append(button_3)
7575

7676
# a roundrect
77-
button_4 = Button(x=BUTTON_MARGIN, y=BUTTON_MARGIN*2+BUTTON_HEIGHT,
77+
button_4 = Button(x=BUTTON_MARGIN*2+BUTTON_WIDTH, y=BUTTON_MARGIN*2+BUTTON_HEIGHT,
7878
width=BUTTON_WIDTH, height=BUTTON_HEIGHT,
7979
label="button4", label_font=font, style=Button.ROUNDRECT)
8080
buttons.append(button_4)
8181

8282
# a shadowrect
83-
button_5 = Button(x=BUTTON_MARGIN*2+BUTTON_WIDTH, y=BUTTON_MARGIN*2+BUTTON_HEIGHT,
83+
button_5 = Button(x=BUTTON_MARGIN*3+BUTTON_WIDTH*2, y=BUTTON_MARGIN*2+BUTTON_HEIGHT,
8484
width=BUTTON_WIDTH, height=BUTTON_HEIGHT,
8585
label="button5", label_font=font, style=Button.SHADOWRECT)
8686
buttons.append(button_5)
8787

8888
# a shadowroundrect
89-
button_6 = Button(x=BUTTON_MARGIN*3+2*BUTTON_WIDTH, y=BUTTON_MARGIN*2+BUTTON_HEIGHT,
89+
button_6 = Button(x=BUTTON_MARGIN, y=BUTTON_MARGIN*3+BUTTON_HEIGHT*2,
9090
width=BUTTON_WIDTH, height=BUTTON_HEIGHT,
91-
label="button5", label_font=font, style=Button.SHADOWROUNDRECT)
91+
label="button6", label_font=font, style=Button.SHADOWROUNDRECT)
9292
buttons.append(button_6)
9393

94-
95-
9694
for b in buttons:
9795
splash.append(b.group)
9896

99-
10097
while True:
10198
p = ts.touch_point
10299
if p:

0 commit comments

Comments
 (0)