Skip to content
Advertisement

Remove minimizd button in tkinter “root” window

I am trying to apply transient to Tk() instance. Example:

JavaScript

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()

enter image description here

But is there any way to remove the and - buttons on the root window?
When I do:

JavaScript

I get an error:

JavaScript

I know I could simply do root.resizable(0, 0) or root.withdraw() after-wards. But I am exploring tkinter and I would like to to see implementation of root.transient()

If soomething obvious is missing, please be gentle.

Thanks a lot in advance!

Advertisement

Answer

This is code:

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement