I am observing an unstable behavior of FloatCanvas2 (FC2) when I
manually change the size of the window up to a point where the canvas
itself disappear.
After I resize the window again my program (which has some mouse
drawing and image showing) stops to work: the stuff I draw does not
appear on the screen anymore.
For example, run the SimpleLineDrawer example in the demo folder of
FC2, minimize the window until the canvas disappear, release the
mouse, and resize the window again. You should see that the lines
can't be drawn anymore.
I also observe a similar problem when I try to implement a
SplitterWindow; when the width of the FC2 panel is minimized, the
canvas simply disappear (when I click the refresh button, the image
appears again but I still have problems with drawing stuff on the
canvas).
The examples in FloatCanvas (FC) don't show this problem. Is there any
solution for that in FC2?
By the way, there is a small typo on line 166 of navcanvas.py: it
should be 'jpg' and not 'png' at the second condition below:
if not (filename.lower().endswith('png') or
filename.lower().endswith('png') or filename.lower().endswith('bmp')):
Thanks
Marcos Duarte
http://lob.iv.fapesp.br/
University of Sao Paulo, Brazil
_______________________________________________
FloatCanvas mailing list
[email protected]
http://mail.mithis.com/cgi-bin/mailman/listinfo/floatcanvas