WxInter

Phil Thompson phil at riverbankcomputing.co.uk
Fri Sep 10 18:02:04 CEST 2004


On Friday 10 September 2004 4:57 pm, Eric Brunel wrote:
> Michael Sparks wrote:
> > On Fri, 10 Sep 2004, Skip Montanaro wrote:
> >>    Tom> It seems that the thing that people like about Tk is the Canvas
> >>    Tom> object has anyone tried the wxFloatCanvas as a replacement.
> >>
> >>Where is it?  Google turns up essentially nothing for "wxFloatCanvas" on
> >>either groups or web.  That makes it a pretty well-hidden object.  Google
> >>offered "wxPlotCanvas" as an alternative.  Are they related?
> >
> > http://www.wxpython.org/docs/api/wx.lib.floatcanvas.FloatCanvas.FloatCanv
> >as-class.html
>
> Compare this with the tk canvas command manual at
> http://www.tcl.tk/man/tcl8.3/TkCmd/canvas.htm and you'll see we're quite
> far from it: I didn't see any means to move canvas items individually, or
> group them with tags, or knowing which items are at a given position, all
> things a tk canvas can do very easily...
>
> The main difference between the tk canvas and the other toolkits' canvases
> is in fact quite simple: in other toolkits, once displayed, a canvas item
> is just a bunch of points. In tk, it remains a whole item which can be
> manipulated as a whole. Basically, in tk, canvases are for vector drawing;
> in other toolkits, they're more for bitmap drawing. And this makes quite a
> difference... --

Some other toolkits maybe, but not all...

http://doc.trolltech.com/3.3/canvas.html

Phil



More information about the Python-list mailing list