as the title says, I want to make a program for school that draws rubiks cube. Essentially, user enters size of cube (3×3, 4×4, …) and the program reads the first number of the entered size. So if user writes 3×3, program will read the number ‘3’ at the beginning. From there, …
Tag: tkinter-entry
How do i get string from Entry in tkinter? I use .get(), but it only returns 0
I have trouble returning results from Entry in tkinter. I do not use it immediately after creating tne Entry: This code creates commands for enchanting minecraft items. As you can see, i have 34 entrys so I decided to store their parameters as a list of lists. In the end of the program, when i wanted to get t…
How to get the value of an Entry created in a def?
I’m working on a project and i would like to get the Value of an Entry created in a def (turned on by a button on Tkinter) So I have my main tkinter menu, with a button which will call the def “panier”. The def “panier” is creating the Entry “value” and another button…
Python, Tkinter entry get to function (error was with function call from button)
The entry value is just simply doesn’t get passed into the function, whatever I do. Edit: I just realized, if I add a variable to the function, it gets called as soon as I run the program, and it doesn’t care about the button; but if I don’t give it a variable, it works as it should, only wh…
TKinter Entry validation not working after setting its StringVar
I have a TKinter entry widget where i want to validate the input, and everything works as expected. But when I set the StringVariable of the Entry widget the validation function is no more called. Can someone explain me this behavior? Here is an example of my problem where i validate whether the input is a di…