Jean-Baptiste Cazier wrote:

S�l !

I have been designing a couple of applications on my linux box based on python + gtk 
and they work just fine.
But porting them to any Windows system is quite a pain because GTK is not straight 
forward to install on those platforms
However, Tcl /Tk is very easy to install on both *nix and Windows platform.

So why should I develop under gtk while I could use the more portable tk ?
Coudl you please enlighten me with your pros and cons of both candidates or any third one


Some of the reasons to choose GTK over Tk include:

* GTK provides a larger range of standard widgets, so you are more
likely to find a widget that does what you want.
* GTK has full support for unicode and internationalised text
(including BiDi). This fits in with Python's unicode support,
which makes i18n a breeze. In right to left environments, the
user interface of your app will even be flipped.
* GTK has accessibility support through the ATK library. This
integrates with the Gnome a11y tools. As many countries have laws
about equal access or discrimination against disabilities,
accessibility support may be required if providing a solution to
governments.
* Antialiased text. On X11, GTK uses the fontconfig and Xft
libraries to provide client side font rendering, which results in
much better quality, and can be faster than the old core X font
system in some cases.
* A PyGTK app will conform to your GTK theme, so will fit in well on
a Gnome desktop. Apparently KDE will also set up a matching GTK
theme for you, so your app should fit in well there as well. Through the standardisation efforts at freedesktop.org, your app
should integrate better with either desktop as time goes on.
* Tk apps generally look out of place on modern Unix desktops. I
don't know if/when this situation will change.


On top of this, I think PyGTK has a nicer API compared to Tkinter, but that is just an opinion. I suggest trying both out (make sure you try a 1.99.x version of PyGTK though, rather than the older 0.6.x versions).

On the downside, documentation for PyGTK is not as extensive as Tkinter documentation. However, we have some reference documentation that has been generated from the C docs, and there are a number of tutorials available.

Hope this helps,

James.

--
Email: [EMAIL PROTECTED]
WWW:   http://www.daa.com.au/~james/



_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to