Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2005-10-05
11:14 • Ticket [1216775fff] tk_dialog bug: grab failed in tk_dialog, line 142 status... artifact: b9abd5ecf4 user: hobbs
11:14 • Closed ticket [1216775fff]. artifact: c747760265 user: hobbs
2005-08-26
17:03 • Ticket [1216775fff]: 4 changes artifact: c9c112230d user: dkf
2005-06-08
06:54 • Ticket [1216775fff]: 4 changes artifact: fad239b7b3 user: sick_soul
06:54 • Add attachment tk_dialog.tcl.patch to ticket [1216775fffffffff|1216775f... artifact: ee5e335681 user: sick_soul
2005-06-07
23:52 • New ticket [1216775fff] tk_dialog bug: grab failed in tk_dialog, line 142. artifact: 422ea73a40 user: sick_soul

tk_dialog bug: grab failed in tk_dialog, line 142

Closed / Fixed1216775fffffffffffffffffffffffffffffffffCreated 21 years agoUpdated 21 years ago
Descriptionplain2005-06-07 23:52:11
I am running tclsh8.4 under GNU/Linux and requiring
package Tk and Expect. Please direct me to the proper
bug tracking if this is not the correct place to report.

The problem I am experiencing is that command tk_dialog
raises an error like this:

grab failed: window not viewable
grab failed: window not viewable
    while executing
"grab $w"
    (procedure "tk_dialog" line 142)

when the user clicks and drags continuously a scrollbar
up and down in the app (thus "forcing" focus always on
the scrollbar), and in the meantime some event occurs
that pops up a dialog (via tk_dialog).

I solved the problem by patching dialog.tcl (which I
have in /usr/lib/tk8.4/) waiting for the visibility of
the dialog to change before grabbing.

A simple patch in unified format against dialog.tcl is
attached.

Claudio
sick_soulplain2005-06-08 06:54:06
File Added - 137618: tk_dialog.tcl.patch
dkf Ticket [1216775fff]: 4 changes [History diff]2005-08-26 17:03:12
hobbsplain2005-10-05 11:14:39
Logged In: YES 
user_id=72656

Fixed in 8.4.12 and 8.5a4.
hobbs Ticket [1216775fff]: 2 changes [History diff]2005-10-05 11:14:40
Log in (anonymous is fine) to add a comment.

Attachments: