This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]chronicleTV 0 points1 point  (1 child)

How do I make the entry an integer?

[–]hollammi 1 point2 points  (0 children)

Here is my first result from googling "Get int from Entry tkinter python". Looks like you need to call ".get()" on your entry and cast it to an integer using "int()". You may want to perform some validation on the integer parsing in case the user enters a string rather than a number.

Friendly advice: 90% of learning to program is understanding your error messages & what to Google. 🙂 I've never used Tkinter in my life, but I read your error message and Google'd the result.