Hi
Let me try to defend Gtk+ a little ...
I believe it has been ported to MSW, but I doubt it would look or act neary
as nice as wxPython on MSW.
Gtk+ has theme-support on MSW ... I think wxPython has not.
You would have no native widgets, no native LnF, and the general flakyness
of something designed for a X and Unix environment pounded to fit on a
win32 environment.
Certainly most non-programmers prefer to get native LnF on their windows
systems.
OTOH I'd prefer to have GTKs "non-MS" file-dialogs instead of wxPythons
"bug-causing" file-dialogs.
Otherwise it seems very non-OO to me, and that would probably get
in the way on larger apps.
In my opinion the opposite is true. In wxPython we have three _different_
class hierarchies. (c++, metamodel, python) Many methods are virtual on
the c++-level but final on the python level. Several interfaces were changed
in order to create the Python port. It's often impossible to override methods
from a base class.
In wxGtk there are two simmilar class hierarchies. (metamodel, python)
The design allowed developers to create ports to dozens of languages with
minimal interface changes.
pyGtk features:
Every gtk-object has a dictionary for user-defined objects.
In wxPython _some_ objects use _different_ ways to store user objects.
(SetPyData in wxTreeItems / "long" in wxListCtrls / wxListBox has neither)
Strings with event-names are used in order to connect events with functions
in gtk ... this way the python wrapper doesn't have to be changed when the
gtk library changes a little.
I don't have to write really ugly code in order to catch exceptions
thrown in event handlers. :-/
IMHO it's significantly easier to get useful warnings from gtk.
pyGtk flaws:
The windows ports of Gtk+ that I tested were based on "unstable" gtk+
versions (1.3.x) where unicode support was no longer optional. :-/
All widgets of Gtk+ are quite powerfull and of high quality, but it's
still a subset of the widgets offered by wxPython. The situation is
much better for c programmers that assume that a certain set of
gnome-standardized libraries will be preinstalled by the user.
Bye
(PS: Robin, please consider removing both calls to XpmFree()
from msw/xpmhand.cpp. Calling XpmFreeAttributes() is sufficient.)
MEMO 03/14/01 15:17:21 (2.48 KB)
···
_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users