Hi

I decided a while back to postpone doing any more coding using 
floatcanvas until I saw how the Summer of Code re-write turned out. 
Noticing that some other people seem to be starting to use it, I thought 
I would take a look.  What I read about it looked great.  But I have run 
into several problems, so I think I must be doing something wrong.  Can 
anybody point me in the right direction?

I'm using Ubuntu Hardy.  I installed the latest wxPython (2.8.8.1), then 
used svn to checkout the floatcanvas2 folder, which I positioned within 
the floatcanvas folder (to be specific, at 
/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/lib/floatcanvas/floatcanvas2)
I assumed this was the correct place from the line "import 
wx.lib.floatcanvas.floatcanvas2" which appears in all the demos.

When I run the demos, all is not well:

If I run ASimpleExample.py as a standalone, I get:

creating new RenderSurface. Size:  (550, 454)
RENDER

and a window appears with the NavCanvas controls - but the canvas is 
just grey, with no circle or rectangle on it.  I can resize the window, 
and get appropriate messages on the console - but not see any graphics. 
  But there is no error message that I can see.  This is the same with 
any of the other demos that will run at all.

If I run DefaultShapes.py, I get a long traceback ending:
File "/.../graphicsObjects.py", line 72, in Activate
     self.renderer.measuringContext.SetFont( self.font )
AttributeError: 'NoneType' object has no attribute 'SetFont'

If I run demo.py, I get a message that module sys is not found at line 
109.  After putting in a line "import sys" at the beginning, it runs, 
but gives the same behaviour for each demo as running the demos 
individually.  Also, after trying a few demos, it seizes up and neither 
it nor any other windows will refresh properly until it is forcibly closed.

Sorry to send such a long post - I thought as much detail as possible 
might help?

Thanks for any assistance you can offer.

Andy



_______________________________________________
FloatCanvas mailing list
FloatCanvas@mithis.com
http://mail.mithis.com/cgi-bin/mailman/listinfo/floatcanvas

Reply via email to