Tk Library Source Code

View Ticket
Login
Ticket UUID: 1446320
Title: widget::dialog -modal local option does not work
Type: Bug Version: None
Submitter: apnadkarni Created on: 2006-03-09 11:42:34
Subsystem: tklib Assigned To: hobbs
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2007-11-01 02:42:29
Resolution: Out of Date Closed By: hobbs
    Closed on: 2007-10-31 19:42:29
Description:
Specifying the "-modal local" option to a
widget::dialog does not make the dialog modal. It
actually would generate an error because of invalid
-local option to grab but the offending line is under a
catch so the error gets ignored.
A patch to fix this is:

195c195,201
<           catch {grab -$option(-modal) $win}
---
>           catch {
>                 if {$options(-modal) eq "local"} {
>                     grab $win
>                 } else {
>                     grab -$option(-modal) $win
>                 }
>             }

/Ashok
User Comments: hobbs added on 2007-11-01 02:42:29:
Logged In: YES 
user_id=72656
Originator: NO

fixed somewhere along the way.

apnadkarni added on 2006-03-09 18:44:53:
Logged In: YES 
user_id=295103

Forgot to mention - this bug report is for version 1.2 of
widget::dialog. Tcl/Tk 8.4.12 on Windows XP