wxgtk? wxgtk2? wxogl? wxgl? wxdc?

Hi

Please forgive me if this is a faq.

I am getting more and more confused by the seemingly increasing
number of canvas types for wxpython. Which one would be right to
choose if I want to:
- draw 2D figures made out of several strokes
- be able to move them around
- make them handle events and have methods
- have it as vector graphics
- run an external application from the gui and update the gui during
this run
- be portable (win, linux, unix)
- wnat copy/paste, dragging, grouping, ungrouping, zoom,...

wxgtk doesn't seem to be documented in my wxpython 2.5.3. What are
the differences between the native wxdc, gtk, ogl (and tkinter)?

What are the differences between pygtk and wxgtk/wxgtk2?
Between pyopengl and wxogl/wxgl?

tia,

···

--
Brian (remove the sport for mail)
http://www.et.dtu.dk/staff/be/be.html

Brian Elmegaard wrote:

Hi

Please forgive me if this is a faq.

I am getting more and more confused by the seemingly increasing
number of canvas types for wxpython. Which one would be right to
choose if I want to:
- draw 2D figures made out of several strokes
- be able to move them around
- make them handle events and have methods
- have it as vector graphics
- run an external application from the gui and update the gui during
this run
- be portable (win, linux, unix)
- wnat copy/paste, dragging, grouping, ungrouping, zoom,...

wxgtk doesn't seem to be documented in my wxpython 2.5.3. What are
the differences between the native wxdc, gtk, ogl (and tkinter)?

What are the differences between pygtk and wxgtk/wxgtk2? Between pyopengl and wxogl/wxgl?

You're asking us to compare apples and oranges and sequoia trees.

GTK: the GNOME ToolKit, a widget set and etc. for X-Windows
pygtk: a Python wrapper for the GTK gui library
tkinter: a Python wrapper for the Tk gui library
PyOpenGL: a python wrapper for the OpenGL library
wxGTK(2): the wxWidgets port build on top of the GTK library, there
           are also wxMSW, wxMac and other wxWidgets ports.
wxDC: a wxWidgets class that represents a Device Context and
           provides methods for low-level drawing upon it. With
           it you can draw on a window, the screen, a bitmap, a printer
           etc.
OGL: A set of classes collectivly called Object Graphics Library,
           see the wx.lib.ogl package. Of the things you listed it comes
           the closest to what you are asking for.
wxOGL: same as previous

You might also want to look at the FloatCanvas classes in wx.lib.floatcanvas.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Robin Dunn <robin@alldunn.com> writes:

Robin Dunn <robin@alldunn.com> writes:

Thanks a lot for the answer.

You're asking us to compare apples and oranges and sequoia trees.

This is perhaps where I go wrong then. Looking at the screenshots I
find of them they look like they can do the same. How would I know
that I compare different things? I think I get one point: OGL and
OpenGl are different.

GTK: the GNOME ToolKit, a widget set and etc. for X-Windows

But seemingly ported to windows too.

"GTK+ is a multi-platform toolkit for creating graphical user
interfaces. Offering a complete set of widgets, GTK+ is suitable for
projects ranging from small one-off projects to complete application
suites."

tkinter: a Python wrapper for the Tk gui library

Not native look and feel, but vector graphics.

PyOpenGL: a python wrapper for the OpenGL library

"OpenGL is the premier environment for developing portable,
interactive 2D and 3D graphics applications."

wxDC: a wxWidgets class that represents a Device Context and

And "The open source, cross-platform, Direct Connect client." to
confuse novices?

OGL: A set of classes collectivly called Object Graphics Library,
           see the wx.lib.ogl package. Of the things you listed it comes
           the closest to what you are asking for.

Nice, but maybe not?
"OGL is an interesting graphics package. It has documentation
problems."

You might also want to look at the FloatCanvas classes in
wx.lib.floatcanvas.

Thanks for the pointer/additional confusion: "This is a high level
window for drawing maps and anything else in an arbitrary coordinate
system."

I guess I will have to dive deeper into the facilities of each before
making a decision.

Regards,

···

--
Brian (remove the sport for mail)
http://www.et.dtu.dk/staff/be/be.html

Brian Elmegaard <be@mek.dtu.dk> writes:

> see the wx.lib.ogl package. Of the things you listed it comes
> the closest to what you are asking for.

Nice, but maybe not?
"OGL is an interesting graphics package. It has documentation
problems."

It does seem like wxogl is the best solution and I found the demo.

But wxart2d also seems very interesting. Has anyone made wxart2d run
with wxpython? On windows without a visual c compiler?

···

--
Brian (remove the sport for mail)
http://www.et.dtu.dk/staff/be/be.html

Brian Elmegaard wrote:

Brian Elmegaard <be@mek.dtu.dk> writes:

          see the wx.lib.ogl package. Of the things you listed it comes
          the closest to what you are asking for.

Nice, but maybe not?
"OGL is an interesting graphics package. It has documentation
problems."

It does seem like wxogl is the best solution and I found the demo.

But wxart2d also seems very interesting. Has anyone made wxart2d run
with wxpython? On windows without a visual c compiler?

Not yet.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!