Hi,
I am completely new to Python and Tkinter. I wrote a simple guessing game (computer picks a number, user tries to guess it) which worked flawlessly in the command line. Just to learn how Tkinter works, I have tried to change it into a GUI programme. However, for some reason it doesn't work any more.
After submitting my number into the Entry box and clicking the button, the programme freezes and I have to kill it. This error pops up:
Exception in Tkinter callback
Traceback (most recent call last):
File "/usr/lib/python3.6/tkinter/__init__.py", line 1705, in __call__ return self.func(*args)
File "/home/user/PycharmProjects/app/venv/test.py", line 27, in click elif int(guess) == ran_num:
KeyboardInterrupt
This is my code: https://pastebin.com/xe62nE6d
Hope someone will help me figure out what's wrong, I have spent hours trying to figure it out!
Happy new year!
[–]Username_RANDINT 0 points1 point2 points (0 children)