Hello,
We're puzzled by this one. goto_menu is a Tkinter Menu so should have a
"state" option. So since it seems not to have one it must have been
whacked somehow. If, at the Python prompt you do:
>>> w = top.getWindowPopup(name='myWindow') # myWindow = window name
>>> d = w.scrolled_window.menu.submenuDict
>>> d['Navigate']
<memops.gui.Menu.Menu instance at 0x4134f9ac>
you should get something like the above, i.e. it should be a
memops.gui.Menu.Menu instance, which is a subclass of Tkinter.Menu. If it
says it is a memops.gui.Menu.Menu instance then we would seem to be in a
funny situation where it wasn't properly initialised somehow. But the
menu initialisation is pretty bog standard, and if the goto isn't working
I wouldn't have thought that most of them were working (most have similar
state settings).
And we weren't too sure what you meant by the last bit (and that's
probably a crucial clue as to what is going on above). When you say the y
coordinate is not available do you mean that in the "Edit Assignment"
dialog you cannot set the y assignment to being a (new) resonance?
Wayne
On Tue, 7 Jun 2005, Bruce D. Ray wrote:
> I'm trying to assign a spectrum after picking peaks. I select the peak
> and it will only give a resonance number to the x-coordinate. The
> error message reads:
>
> 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"
>
>
> The y-coordinate for the peak is not available for assignment.
>
>
> Sincerely,
>
>
> --
> Bruce D. Ray, Ph.D.
> Associate Scientist, and Operations Director
> NMR Center
> IUPUI
> Physics Dept.
> 402 N. Blackford St.
> Indianapolis, IN 46202-3273
>
|