I’m a first timer at tkinter(python) and what I want to do is to make a line of text stay on the same coords ratio on the canvas. For example, I want a line of text to stay in the middle. Is there any tkinter text parameters that make it stay in a certain ratio without running a while loop?
Is there a way to toggle/hide/show tkinter buttons
I am making blackjack in tkinter and instead of placing buttons over the existing buttons i want to toggle them when, say a new game. Answer There are many ways of doing this. One option (I think he simplest one) is to get your buttons in a frame that you can pack and unpack using pack and packing_forget. In this
How to make a scrollable listbox? tkinter python
I want to create a listbox with an auto hiding scrollbar. I’ve been searching and found a class example; when I play around with it, the scrollbar doesn’t stayed attached to the right side as expected. This is the code: This is the first view when I run the code: When I expand the window the scrollbar disappears properly: But
Is there a way to iterate through certain types of objects on a canvas in python tkinter?
For example, I’ve got a bunch of text objects of varying font families on a canvas, can I make some kind of call to iterate through these text objects and alter them? Answer You can get a list of all items on a canvas with the find_all() method and then just list them: Have a look at effbot: The Tkinter
Func for temporary text in many tkinter Entry widget?
I want to put a temporary text in more than 1 entry with tkinter, but my func is not working. I have this situation: Its working, but… I wan’t to use the same func for other entrys, like this one: Any ideas on how to make it universal? Answer Here’s a PlaceholderEntry widget that should to what you want You
Python Tkinter count-down GUI crashing when i start the Count-Down with a button. (app not answering)
I am making a count-down GUI with Tkinter in Python 3.10 and I’m making a slider that sets the minutes, 2 labels that display the minutes and seconds and a button to start the timer. The problem is that it crashes when I click the start timer button, The strange thing is that it doesn’t give me any error messages
I want to create a back button in a tkinter program to recreate a filled form. How do I reopen a withdrawn root window?
Is there a way I can reopen a withdrawn window? I know it is impossible with the destroy function, but I would imagine it would be possible to do so after using the the withdraw function. I created a root1 loop and a root2 loop which opens after the root1 is closed. I have a back button on the second
Tkinter Window: TypeError: can only concatenate str (not “int”) to str
I’m having trouble solving the Concatenate Error when it’s present in a Tkinter Window. I tried using multiple methods but, they didn’t work to well with what I’m trying to do. I’m trying to make it so where, at the click of a Tkinter button, it would randomly choose a value between 0 and 100. If the random value is
how do i manually parse output of .dump() file into a text widget
how do i manually parse output of .dump() from a text widget that has italic and bold text in it to a different text widget to load it along with its text format. this is the code if it helps, the text should be saved along with text format but when the file is open the text format is gone:
Tkinter – TTK – Button change state after click
how can i change the state of a button made with TTK in Python after i clicked it ? I want to disable the button START after i press it once and re-enable it after pressing STOP. I want this because my code creates a new duplicated thread everytime i press Start … so… i want to disable it… I