[issue26340] modal dialog with transient method; parent window fails to iconify

2017-12-08 Thread Vladimir Semenenko

Vladimir Semenenko  added the comment:

After they marked the issue as "resolved" earlier this year I tested a
subsequent 3.x release in Windows 7 and Vista (I don't have 10). The issue
was still there.

I don't have a workaround. I am forced to stay with 2.7.3.

On Dec 8, 2017 9:32 AM, "jarb"  wrote:

jarb  added the comment:

I am having the exactly same issue. Was this issue resolved for Windows 10?
This does not happen in Linux. Any workaround for Windows 10?

--
nosy: +jarb

___
Python tracker 

___

--
nosy: +Vladimir Semenenko

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26340] modal dialog with transient method; parent window fails to iconify

2017-12-08 Thread jarb

jarb  added the comment:

I am having the exactly same issue. Was this issue resolved for Windows 10? 
This does not happen in Linux. Any workaround for Windows 10?

--
nosy: +jarb

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26340] modal dialog with transient method; parent window fails to iconify

2017-03-07 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
resolution:  -> works for me
stage:  -> resolved
status: pending -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26340] modal dialog with transient method; parent window fails to iconify

2016-10-24 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
status: open -> pending

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26340] modal dialog with transient method; parent window fails to iconify

2016-02-13 Thread Terry J. Reedy

Terry J. Reedy added the comment:

How do I run it?  "tcl is not recognized ..."

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26340] modal dialog with transient method; parent window fails to iconify

2016-02-13 Thread Terry J. Reedy

Terry J. Reedy added the comment:

As near as I can tell, the Windows installer installs tcl/tk libraries but no 
executable. Perhaps your example could be converted to root.tk.call(? ? ?) 
form, but I do not know how to do do.  Passing the entire tcl program as one 
python string argument does not work.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26340] modal dialog with transient method; parent window fails to iconify

2016-02-13 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Here is an equivalent code on Tcl. It behaves as expected on Linux with Tk 8.6 
and 8.4. The parent window responds to minimize, maximize, and close events. 
The modal dialog window iconifies and closes together with the parent window.

Could you test it on Windows?

--
Added file: http://bugs.python.org/file41913/issue26340.tcl

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26340] modal dialog with transient method; parent window fails to iconify

2016-02-13 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

You need to install Tcl/Tk separately (e.g. ActiveTcl) and use the "wish" 
command.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26340] modal dialog with transient method; parent window fails to iconify

2016-02-12 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I changed 'Tkinter' to 'tkinter' and added 'root' to the Toplevel call and got 
the same behavior running from IDLE on Win10.  I am not sure this is a python 
bug, as opposed to a change in behavior.  Modal dialogs tend to disable 
everything else and tk and or Windows might have changed from 2.7.3.

--
nosy: +serhiy.storchaka, terry.reedy
versions: +Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26340] modal dialog with transient method; parent window fails to iconify

2016-02-11 Thread vs

New submission from vs:

Consider the following code implementing a custom modal dialog:

from Tkinter import *

def dialog():
win = Toplevel()
Label(win, text='Modal Dialog').pack()
win.transient(win.master)
win.focus_set()
win.grab_set()
win.wait_window()

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

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.

--
components: Tkinter, Windows
messages: 260114
nosy: paul.moore, steve.dower, tim.golden, vs, zach.ware
priority: normal
severity: normal
status: open
title: modal dialog with transient method; parent window fails to iconify
type: behavior
versions: Python 2.7, Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com