|
19 | 19 | for i, filename in enumerate(fonts):
|
20 | 20 | fonts[i] = cwd+"/fonts/"+filename
|
21 | 21 | print(fonts)
|
22 |
| -THE_FONT = "/fonts/Chicago-12.bdf" |
| 22 | +THE_FONT = "/fonts/Arial-12.bdf" |
23 | 23 | DISPLAY_STRING = "Button Text"
|
24 | 24 |
|
25 | 25 | # Make the display context
|
|
74 | 74 | buttons.append(button_3)
|
75 | 75 |
|
76 | 76 | # 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, |
78 | 78 | width=BUTTON_WIDTH, height=BUTTON_HEIGHT,
|
79 | 79 | label="button4", label_font=font, style=Button.ROUNDRECT)
|
80 | 80 | buttons.append(button_4)
|
81 | 81 |
|
82 | 82 | # 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, |
84 | 84 | width=BUTTON_WIDTH, height=BUTTON_HEIGHT,
|
85 | 85 | label="button5", label_font=font, style=Button.SHADOWRECT)
|
86 | 86 | buttons.append(button_5)
|
87 | 87 |
|
88 | 88 | # 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, |
90 | 90 | width=BUTTON_WIDTH, height=BUTTON_HEIGHT,
|
91 |
| - label="button5", label_font=font, style=Button.SHADOWROUNDRECT) |
| 91 | + label="button6", label_font=font, style=Button.SHADOWROUNDRECT) |
92 | 92 | buttons.append(button_6)
|
93 | 93 |
|
94 |
| - |
95 |
| - |
96 | 94 | for b in buttons:
|
97 | 95 | splash.append(b.group)
|
98 | 96 |
|
99 |
| - |
100 | 97 | while True:
|
101 | 98 | p = ts.touch_point
|
102 | 99 | if p:
|
|
0 commit comments