Skip to content

Commit 0bbbd05

Browse files
committed
Change Label.text to receive strings
1 parent d9d5c13 commit 0bbbd05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PyBadge_Blinka_Jump_Game/code.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ def life():
222222
sparky0_grid.x = 5
223223
sparky1_grid.x = 40
224224
sparky2_grid.x = 65
225-
score_area.text = 300
225+
score_area.text = str(300)
226226
new_game_text.text = "BLINKA JUMP"
227227
life()
228228
# if start is pressed...
@@ -246,7 +246,7 @@ def life():
246246
# adds 10 points every time a Sparky is cleared
247247
total_score = score + jump_score
248248
# displays score as text
249-
score_area.text = int(total_score)
249+
score_area.text = str(int(total_score))
250250

251251
# puts Sparky states and x location into callable arrays
252252
for s in range(3):

0 commit comments

Comments
 (0)