Hello,
That traceback below looks like it is being called from the quit
operation, and it's falling over because some window has not been
initialised properly. I've added some extra safety code for that deletion
routine in WindowPopup and added it to the update server. But that does
not solve the original problem of why your window is not being initialised
correctly. Was there no traceback for that? (Perhap's it's been lost off
the top of the screen because of the traceback below.)
(Note that ctrl-D at the Python prompt does a quick exit from Analysis but
doesn't give you the opportunity to save. But if Analysis has a modal
dialog open or has hung for some other reason this won't work. The
alternative is to kill the process.)
Wayne
On Thu, 7 Dec 2006, Ben Goult wrote:
> Hi,
>
> I have had a problem (at least since v1.10) in that sometimes when I try and
> create a new window, it fails and makes a window but it doesnt open up
> properly and just stays in the top corner. This doesnt happen every time but
> is a problem when it does, requiring a restart of the program to fix.
>
> >>> Exception in Tkinter callback
> Traceback (most recent call last):
> File "/usr/lib64/python2.4/lib-tk/Tkinter.py", line 1345, in __call__
> return self.func(*args)
> File
> "/data/prog/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/AnalysisPopup.py", line
> 1686, in quit
> self.destroy()
> File
> "/data/prog/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/AnalysisPopup.py", line
> 1675, in destroy
> BasePopup.destroy(self)
> File "/data/prog/ccpnmr/ccpnmr1.0/python/memops/editor/BasePopup.py", line
> 191, in destroy
> memops.gui.BasePopup.BasePopup.destroy(self)
> File "/data/prog/ccpnmr/ccpnmr1.0/python/memops/gui/BasePopup.py", line
> 371, in destroy
> Tkinter.Toplevel.destroy(self)
> File "/usr/lib64/python2.4/lib-tk/Tkinter.py", line 1868, in destroy
> for c in self.children.values(): c.destroy()
> File "/data/prog/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/WindowPopup.py",
> line 2930, in destroy
> self.deleteHandlers()
> File "/data/prog/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/WindowPopup.py",
> line 3013, in deleteHandlers
> for j in range(self.scrolled_window.nrows):
> File "/data/prog/ccpnmr/ccpnmr1.0/python/memops/gui/BasePopup.py", line
> 389, in __getattr__
> raise AttributeError, "%s instance has no attribute '%s'" %
> (self.__class__.__name__, name)
> AttributeError: WindowPopup instance has no attribute 'scrolled_window'
>
> However, it has just happened again in v1.12 but now it doesnt let me quit,
> just repeating the same traceback. I had to kill the program from the
> command line.
>
> Is this something we are doing wrong when creating new windows?
>
> Cheers
>
> Ben
>
|