Chris Barker wrote:
gbmail wrote:
My example drawing program has a lot of functionality in
about the same numer of lines as the FloatCanvas class.I didn't quite follow this: your drawing program, using the TK Canvas, hs about the same number of lines as the FloatCanvas Class? That's actually quite a lot! How long would it be if you used FloatCanvas?
Let me try this though - is there any way to get the tk canvas in
wxpython without having to use tcl as well (I.E. use wx widgets but use the tkcanvas to draw on)?This would be a major undertaking. Mixing GUI toolkits is a major challenge. In theory, it would be possible to runt eh two toolkits in two different threads, but I know I wouldn't go there!
Could the source code for it be turned into a canvas that could
be used with wx windows (assuming the licenses allow it)?It might be worth looking there for ideas, but I doubt a direct translation would be worth it. if nothing else, you're looking at C vs. C++ or C vs Python.
I think you'd be better off adding the features you need to FloatCanvas or OGL. or maybe figuring out how to get wxArt2d wrapped for use with Python.
If you like C++, I suppose a wxWidgets canvas, inspired by the TK canvas, could be very useful to the the entire wxWidgets community.
If you're going to take any of these approaches, make sure to look at Java2d also.
What does the TK canvas give you that FloatCanvas and/or OGL do not?
Sorry, don't mean to be drawing negative comparisons. I'm just examining all of the possibilities. Now that my computer is back I'll work with the FloatCanvas and see what it can do.