Get an Integer from Entry

How do I get an integer type from the Tkinter Entry widget?

If I try to get the value using variable_name.get(), it says it is a str. If I try to change the type using int(variable_name.get()), it says int can only accept a string or number.

Any help would be welcome!

5
задан MaxPowers 15 February 2017 в 10:34
поделиться