Does anyone know what happened to the wxCanvas project? It was supposed
to create a Tk Canvas like construct for wxWindows (and hopefully
wxPython). I'm running up some limitations in wxOGL (primarily the
slightly rigid wxLineShape API) that a Tk-like canvas would very nicely
solve.
Does anyone know what happened to the wxCanvas project? It was supposed
to create a Tk Canvas like construct for wxWindows (and hopefully
wxPython).
I don't think it got very far. there was a scalable vector canvas class
that got pretty far, but the web page it was on is now gone, so who
knows. The pixel coordinate one that would be like TKs was talked about,
but It don't think it ever came to be. You could try wx-dev or wx-users
and see if anyone there knows what became of it.
I've written a floating point canvas in wxPython that's pretty usefull
to me, but has a lot of work to be done on it still. What is it you are
trying to do?
-Chris
···
--
Christopher Barker, Ph.D.
Oceanographer
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
I already have a pretty full-functioning graph editor (something along
the lines of IBM Data Explorer, Khoros or AVS) based on wxOGL. The
previous version was made with a simple Tk canvas. Now that I want to
extend my edge routing code, I'm running up against limitations in the
wxLineShape API, mostly the fact that individual control points can't be
easily controlled (doh!).
At the moment I'm banging together a REALLY quick proof of concept
wxScrolledWindow derivative in Python: I want a canvas on which a number
of basic shapes can be drawn (lines, rectangles, polygons, circles,
text) and it should be possible to assign arbitrary events to any of the
shapes (enter, exit, mouse clicks, etc).
Thanks,
Charl
···
On Tue, 2003-05-06 at 11:34, Chris Barker wrote:
I've written a floating point canvas in wxPython that's pretty usefull
to me, but has a lot of work to be done on it still. What is it you are
trying to do?
Does anyone know what happened to the wxCanvas project? It was supposed
to create a Tk Canvas like construct for wxWindows (and hopefully
wxPython). I'm running up some limitations in wxOGL (primarily the
slightly rigid wxLineShape API) that a Tk-like canvas would very nicely
solve.
I took a look a couple months ago at wrapping it for wxPython but didn't get very far. I was investigating it for OSAF and they decided to go with something simpler[1] instead, for the short term at least. I expect that we'll eventually be able to get wxArt2D into wxPython as Klaas would like it to happen and I think he is following some general guidelines I gave him a while back that will help make it easier. Even so it is still a large and complex library...
Another approach that might be nice to investigate is to duplicate OGL in pure Python. That would make it much easier to enhance and extend...
[1] You can see what the OSAF is using by looking at SimpleCanvas.py in the Chandler source tree. It is still very basic and currently depends on a feature that won't be generally available until 2.4.1 (or current CVS) but I expect that over time it will grow to be quite nice.