This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vs
Recipients paul.moore, steve.dower, tim.golden, vs, zach.ware
Date 2016-02-11.17:05:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Consider the following code implementing a custom modal dialog:

from Tkinter import *

def dialog():
    win = Toplevel()
    Label(win, text='Modal Dialog').pack()

root = Tk()
Button(root, text='Custom Dialog', command=dialog).pack()

In Python 2.7.3, the parent window behaves as expected when the modal dialog is active. That is, the parent window responds to minimize, maximize, and close events. The modal dialog window iconifies and closes together with the parent window. If a user presses Show Desktop button in Windows OS, the parent and the dialog iconify together and can be restored from the Taskbar.

However, in more recent Python releases (I tested 2.7.8, 2.7.11 and 3.5.1), the parent window does not respond to any of the three window commands. If the modal dialog is open and the user presses Show Desktop, both windows iconify, but they CANNOT be restored or closed from the Taskbar. The only way to close such an application is to kill it through the Task Manager.
Date User Action Args
2016-02-11 17:05:42vssetrecipients: + vs, paul.moore, tim.golden, zach.ware, steve.dower
2016-02-11 17:05:42vssetmessageid: <>
2016-02-11 17:05:42vslinkissue26340 messages
2016-02-11 17:05:42vscreate