Skip to content

Tag: tkinter

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 posi…

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?…