rectangletangle
rectangletangle

Reputation: 52921

Minimizing a Tk Window

I have a window I made with Tkinter, I'd like to be able to minimize it. This is in Windows 7 FYI.

Upvotes: 16

Views: 23501

Answers (1)

user225312
user225312

Reputation: 131627

>>> import Tkinter
>>> w = Tkinter.Tk()
>>> w.wm_state('iconic')

Should work and minimize the window to the taskbar.

To minimize it to the taskbar as a button:

w.iconify()

Upvotes: 27

Related Questions