Skip to content

Commit 54e1abe

Browse files
committed
tomato.py: fixed the countdown position
1 parent 18432cd commit 54e1abe

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

examples/tomato.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,8 @@ def draw(self):
114114
display.set_pen(self.text_colour)
115115
text = self.return_string()
116116
vector.set_font_size(96)
117-
x, y, w, h = vector.measure_text(text, x=0, y=0, angle=None)
118-
tx = int(CX - (w // 2))
119-
ty = int(CY - (h // 2)) + 10
117+
tx = int(CX - (205 // 2))
118+
ty = int(CY - (58 // 2)) + 10
120119
vector.text(text, tx, ty)
121120

122121
def run(self):

0 commit comments

Comments
 (0)