Skip to content
Advertisement

Tag: tkinter

Matplotlib FuncAnimation Created twice – duplicate when embbeded in tkinter

I have a troubleing bug that i just could not understands it’s origin. Several days of attempts and still no luck. I’m trying to create a line cursor that correspond to played audio with FuncAnimation and for some reason, the animation is created twice ONLY when the callback (line_select_callback) that activates the function is triggered from RectangleSelector widget after drawing

TKinter – buttons not in a row?

i try to bring those 2 buttons i a line under the dropboxes – But as you can see in the picture – the button are not in the same line. This is part of my code where i am setting the grid for the output: Any ideas why this is not working as expected? Answer In order to match

How to set a maximum limit for dragging in tkinter PanedWindow?

In the above code, I don’t want the frame1 to expand too much when dragged. How can I set a limit for this? Answer There are no straightforward ways to do this. You can achieve this either by setting minsize for frame2. Something like this: Another way is to return “break” when the sash position is greater than the max-width

Tkinter Python – how to set a command for a column

I want to create a table like this: I want it to work such that when I click on “delete this record” it will delete that row of data. I am trying this code: Answer You can bind <ButtonRelease-1> on the treeview and then determine whether user has clicked on the required cells. If yes, ask for confirmation and delete

How do i make the print to appear in tkinter window?

So i made this program for fun but i saw that when i click the button the “ez” text appears in pycharm and i wanted to make it appear in the window of the program. Does anyone know how i can do that? Answer Just set the new text to the label you already have:

Remove minimizd button in tkinter “root” window

I am trying to apply transient to Tk() instance. Example: This code will remove the ▭ and – buttons. But, it will only do it for tk.Toplevel(): The window on the left in the root window and the one on the right is tk.Toplevel() But is there any way to remove the ▭ and – buttons on the root window?

Advertisement