Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 6cb2b9ea43708909933f5566d631a5d7df6ab60d
Ticket: 1841962fffffffffffffffffffffffffffffffff
Vista aero Desktop Window Manager
User & Date: patthoyts on 2008-03-24 19:16:08
Changes

  1. closedate changed to: "2008-03-24T12:16:08"
  2. closer changed to: "patthoyts"
  3. icomment:
    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).
    
    
  4. login: "patthoyts"
  5. mimetype: "text/plain"
  6. status changed to: "Closed"
  7. username: "patthoyts"