selecting objects in a drawing

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.

Gary Bankston wrote:

Chris Barker wrote:

What does the TK canvas give you that FloatCanvas and/or OGL do not?

Sorry, don't mean to be drawing negative comparisons.

I didn't take it as a negative comparison. The TK Canvas is a very robust, useful and well respected tool. However, I by no means set out to emulate it when I wrote FloatCanvas. That being said, I'm always interested in adding useful features, so I'm wondering what you're looking for. From your note, it sounded like you were still looking, which told me that FloatCanvas, in it's current state, doesn't meet your needs.

-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

Chris.Barker@noaa.gov