Tkinter int() error. pls help!!!!!!
Can you pls tell wut's wrong with my code? Everythings fine but I get an error.
LegendaryWolf (622)
Wut ok! help meh!
Ask coding questions
Can you pls tell wut's wrong with my code? Everythings fine but I get an error.
Wut ok! help meh!
Basically the error is that
c.get()
has the value of''
which is not an int.What you should do instead is to have a try except statement like this:
that way you can also reliablely and gracefully handle bad input that is not number
Mission Success!