Skip to content

Commit cbf657f

Browse files
Merge pull request geekcomputers#706 from Gabighz/master
Fixes geekcomputers#668 - Correctly registering event handlers
2 parents bc25bf4 + d8824d4 commit cbf657f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.Python

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/Library/Frameworks/Python.framework/Versions/3.8/Python

Guess_the_number_game.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
import simplegui
66

7-
87
def new_game():
98
global num
109
print("new game starts")
@@ -35,8 +34,8 @@ def input_guess(guess):
3534

3635

3736
frame = simplegui.create_frame("Guess The Number", 200, 200)
38-
frame.add_button("range[0-1000)", range(1000))
39-
frame.add_button("range[0-100)", range(100))
37+
frame.add_button("range[0-1000)", range_of_1000)
38+
frame.add_button("range[0-100)", range_of_100)
4039
frame.add_input("enter your guess", input_guess, 200)
4140
frame.start()
4241
new_game()

0 commit comments

Comments
 (0)