>Rats, I bloody copied the wrong line from my Python shell (that's the
>problem with copying and pasting), that first line should be:
>
>>>> w = top.getWindowPopup('myWindow')
>
>where you substitute the name of your window (the argument is not called
>"name", hence the error).
Doing that I get:
CCPNMR Analysis Version 1.0. Release 3 (Copyright 2003-2004 CCPN)
Distribution created Thu Jun 9 10:01:20 2005
>>> w = top.getWindowPopup('window1')
>>> d = w.scrolled_window.menu.submenuDict
>>> d['Navigate']
<memops.gui.Menu.Menu instance at 0x422bf58>
>>>
I don't know why it claims the distribution was created Thu Jun 9 10:01:20 2005
That's the date and local time when I started this session. The created string
should read Thu Jun 2 11:22:45 2005
If I quit and restart analysis 1.03, and then get to the point where I have the
error occurring, I get:
>>> Exception in Tkinter callback
Traceback (most recent call last):
File "/sw/src/root-python23-2.3.3-23/sw/lib/python2.3/lib-tk/Tkinter.py", line 1345, in __call__
return self.func(*args)
File "/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/WindowPopup.py", line 1071, in updateMenuState
goto_menu.entryconfig(0, state=state)
File "/sw/src/root-python23-2.3.3-23/sw/lib/python2.3/lib-tk/Tkinter.py", line 2574, in entryconfigure
return self._configure(('entryconfigure', index), cnf, kw)
File "/sw/src/root-python23-2.3.3-23/sw/lib/python2.3/lib-tk/Tkinter.py", line 1130, in _configure
self.tk.call(_flatten((self._w, cmd)) + self._options(cnf))
TclError: unknown option "-state"
>>> w = top.getWindowPopup('window1')
>>> d = w.scrolled_window.menu.submenuDict
>>> d['Navigate']
<memops.gui.Menu.Menu instance at 0x422bf58>
>>>
In other words, I get the exact same output for the test script when the error
state is occurring as I did when I used the script right after initial start up.
Of course, running that short script did not generate any error messages, and
did not alter the error message generated by right mouse clicking anywhere within
the window. This was all working in analysis 1.02. Therefore, something in the
changes to give analysis 1.03 probably either caused this, or brought this to
light.
Sincerely,
--
Bruce D. Ray, Ph.D.
Associate Scientist, and Operations Director
NMR Center
IUPUI
Physics Dept.
402 N. Blackford St.
Indianapolis, IN 46202-3273
|