Some time ago I "bugged" the list with questions about how I could implement a wine rack designer and I got many good tips, hints and a lot of help.
Maybe down the road someone else has similar questions, so I put together a wiki page.
http://wiki.wxpython.org/index.cgi/OGLWineRackDesigner
Any comments on how to improve it (especially with regards to aligning shapes) are very welcome.
Werner
Werner F. Bruhin wrote:
Maybe down the road someone else has similar questions, so I put together a wiki page.
http://wiki.wxpython.org/index.cgi/OGLWineRackDesigner
Nice page. I am curious -- what does OGL have that FloatCanvas doesn't, for you application?
-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
Hi,
Christopher Barker wrote:
Werner F. Bruhin wrote:
Maybe down the road someone else has similar questions, so I put together a wiki page.
http://wiki.wxpython.org/index.cgi/OGLWineRackDesigner
Nice page.
Thanks
I am curious -- what does OGL have that FloatCanvas doesn't, for you application?
Frankly I am not sure if it has anything which is not also there in FloatCanvas. I want with it as the ogl demo was close to what I needed, different shapes, which one could select and move around. This made it much easier for me as all this "lower level" stuff just confuses the hell out of me .
The one thing I don't like with ogl is the aligment (it is off by a few pixels - triangles next to rectangles) and if I can not figure this out I might have to look into FloatCanvas again.
BTW, thanks for your hints and help at the time.
Werner
Werner F. Bruhin wrote:
Frankly I am not sure if it has anything which is not also there in FloatCanvas. I want with it as the ogl demo was close to what I needed, different shapes, which one could select and move around. This made it much easier for me as all this "lower level" stuff just confuses the hell out of me .
Thanks for the input: I think what you've got is that OGl has a built way to use the Mouse to manipulate objects. FloatCanvas has all the tools you need to create a way to manipulate the objects, but it's not built in -- you need to write a bit of low-level code.
This is for a few reasons:
-- I think different uses can need very different types of manipulations, and I'm trying to make FloatCanvas be a with which to build a wide variety of things.
-- I haven't yet figured out out to cleanly factor the manipulation code. It's hard to keep it from being a jumbled mess that needs to know the details of all sorts of different objects. Also each DrawObject is going to need a fair bit of custom code to accommodate how it can be manipulated.
-- Here's the big one: I just haven't had the time to put into it! All the above being true, a set of simple default behaviors for the primary objects that can be customized for individual needs would be great.
if I can not figure this out I might have to look into FloatCanvas again.
Let me know, I would like it to be able to support the kind of app you're building.
BTW, thanks for your hints and help at the time.
You're quite welcome.
-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