Hmmm, not sure what this is all about. The canvas.canvas_width attribute
is set in WindowPopup.resize() and is a bit of an optimisation (so
possibly we should get rid of it, I'd have to look more carefully at the
code to see how bad that might be). But the fact that it has not been set
implies something has gone wrong earlier in the day, almost certainly in
the resize() routine itself. If your shell scroll goes back to the
beginning of the program (i.e. has not been cleared) then there ought to
be an error message higher up. At least I hope there is one there. (This
drawing stuff is a bit multi-threaded and unfortunately Python seems to
put some of those drawing error messages down a black hole.)
Wayne
On Fri, 22 Apr 2005, Krystyna Bromek wrote:
> Hi there,
>
> I think i have a problem with a project which I copied over from a
> different directory structure.
> I went through the directory updates procedure as asked by program when
> starting in the new place.
> I am using what seems to be a version 1.0 relese 2 (checking the version
> from Project menu)
>
> Here is the error that gets repeated many times and the windows remain
> empty:
>
> >>> Exception in Tkinter callback
> Traceback (most recent call last):
> File "/usr/my_progs/ccpnmr/python2.2/lib/python2.2/lib-tk/Tkinter.py",
> line 1316, in __call__
> return apply(self.func, args)
> File
> "/usr/my_progs/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/WindowPopup.py",
> line 2363, in motion
> w = canvas.canvas_width
> AttributeError: WindowCanvas instance has no attribute 'canvas_width'
> Exception in Tkinter callback
>
>
> Any idea ?
>
> Krystyna
>
|