While using TkCon to test a modal FS box, I ran into the problem where
Tk hiccups when you have separate interpreters that try to do grabs.
An easy example is:
#####
set cmd "tk_dialog .test Test Testing... {} 0 OK"
interp create z
load {} Tk z
after 5000 $cmd
z eval $cmd
#####
The result is that the second window to do the grab complains about another
application having grab. This causes the second window to just hang around
(requires an explicit 'destroy'). Is there no way around this? The problem
can arise in what would otherwise be an excellent use of multiple interps,
where one interpreter has a modal dialog up (say a file select box) and you
go to access a menu in the other - BOOM.
The easy answer to this seems to be make local Tk grabs local over all Tk
interpreters in the process. Having them independent would be even nicer.
--
Jeffrey Hobbs Office: 541/346-3998
Univ of Oregon CIS GRF email: jho...@cs.uoregon.edu
URL: http://www.cs.uoregon.edu/~jhobbs/