Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2008-03-24
19:16 • Closed ticket [1841962fff]: Vista aero Desktop Window Manager plus 6 other c... artifact: 6cb2b9ea43 user: patthoyts
2007-12-02
20:17 • Ticket [1841962fff]: 5 changes artifact: 01148e26fc user: dkf
2007-11-30
21:43 • New ticket [1841962fff]. artifact: 1f6f9ae717 user: s3ym0ur

Vista aero Desktop Window Manager

Closed / Invalid1841962fffffffffffffffffffffffffffffffffCreated 19 years agoUpdated 19 years ago
Descriptionplain2007-11-30 21:43:21
The wm_transient method don't seems to work properly with windows vista aero.

When I call a new TopLevel that is transient over the root, the windows button are still accessible in the root.

I use Python 2.5 and the TkInter it comes with.
You can just run the Dialog.py in Python25/Lib/lib-tk to verify what i'm saying. Switch between aero and standard desktop..

Open the dialog and try to press on the root window x button.
-Will work with aero (BAD)
-Won't work with older desktop (GOOD)

No pression on that, its only aero.. just had to share it .
dkfplain2007-12-02 20:17:43
Logged In: YES 
user_id=79902
Originator: NO

This is a Tk issue, not a Tcl issue.
patthoytsplain2008-03-24 19:16:08
Logged In: YES 
user_id=202636
Originator: NO

Doing 'wm transient $w $parent' doesn't make the parent window inactive. I observe the same behaviour on Windows XP and Vista that creating a new toplevel and calling wm transient on the new window does not prevent button presses on the main window. The usual code to make a dialog window modal in Tk is to also use the 'grab' command which forces all the application input to the new window. So something like:
 set dialog [toplevel .dialog]
 wm transient $dialog .
 grab $dialog
 tkwait window $dialog
 grab release $dialog
Transient just fixes the ownership so that your application dialogs are grouped with the application (particularly in the windows taskbar).
Log in (anonymous is fine) to add a comment.