> d = apply(_QueryFloat, (title, prompt), kw)
> File "/usr/lib64/python2.2/lib-tk/tkSimpleDialog.py", line 179, in
> __init__
> Dialog.__init__(self, parent, title)
> File "/usr/lib64/python2.2/lib-tk/tkSimpleDialog.py", line 64, in
> __init__
> self.grab_set()
> File "/usr/lib64/python2.2/lib-tk/Tkinter.py", line 493, in grab_set
> self.tk.call('grab', 'set', self._w)
> TclError: grab failed: window not viewable
Looks like this is a bug in Tk. I cannot always reproduce the error, it
seems to depend on timings/processor load etc.
Although we'll look for a better solution. If you have access to your
Tkinter installation lib-tk/Tkinter.py, after making a backup, change
line 493 (or the equivalent in grab_set()) from:
self.tk.call('grab', 'set', self._w)
to:
self.lift()
self.tk.call('grab', 'set', self._w)
Tim
-------------------------------------------------------------------------------
Dr Tim Stevens Email: [log in to unmask]
Department of Biochemistry [log in to unmask]
University of Cambridge Phone: +44 1223 766022 (office)
80 Tennis Court Road +44 7816 338275 (mobile)
Old Addenbrooke's Site +44 1223 364613 (home)
Cambridge CB2 1GA WWWeb: http://www.bio.cam.ac.uk/~tjs23
United Kingdom http://www.pantonia.co.uk
-------------------------------------------------------------------------------
------ +NH3CH(CH(CH3)OH)C(O)NHCH(CH(CH3)CH2CH3)C(O)NHCH(CH2CH2SCH3)CO2- -------
-------------------------------------------------------------------------------
|