RE: [Edu-sig] Learn to Program in Ten Years

I just took a look at the PyGTK 2.0 Tutorial http://www.pygtk.org/pygtk2tutorial/index.html
Very encouraging to see that much documentation spelled out in a usable format.
However, I'm still curious: do you see PyGTK as a better way to spend your time than with wxPython? Wx has OpenGL bindings as well, has for quite some time. Also, wxPython has that very useful front end: when you download it, you get a huge pile of working code in the form of demos, all wrapped up in a well-organized wx GUI interface. I find dat extremely cool.
Well I guess I thinking that the investment in learning GTK/Gnome has more potential far-reaching benefit. wxPython - and I am not being denigrating in the slightest - is more the big fish in the littlish Python pond. I did choose to take wxPython-dev list off my "reply all" since I'm not looking to raise hackles, or even defend my choices. The PyGTK thing just happens to be where things are leading me personally. Its partly because VPython on Linux uses GTK and I would like to know it better for that reason. And its partly because ubuntu has helped re-ignite a long dormant interest in Linux as a desktop working environment, and I see GTK/Gnome as the Big Pond in that respect. And you in particular will be happy to know that GTK2 *does* have a skins feature ;) Art

Well I guess I thinking that the investment in learning GTK/Gnome has more potential far-reaching benefit. wxPython - and I am not being denigrating in the slightest - is more the big fish in the littlish Python pond.
I haven't reached this conclusion myself. Wx is not a Python technology. It's a C++ library, and a lot of C++ coders use it from within C++. Then you have bindings from other languages, like Python. wxPython is one of these projects. Bittorrent is one of those wildly popular Python applications that uses it. At the OSCONs I've managed to attend (2003, 2004), wxPython attracted a high degree of interest and attendance. We've seen some exciting completed works making use of it. I've not seen similar enthusiasm for pyGTK. This might be the big-fish-in-a-small-pond syndrome, but, as I mentioned, I'm not ready to form a judgment along those lines. Part of what gives me pause is the whole .NET/Mono business. If managed code and IronPython become the new way to code GUI apps cross-platform, then it's the .NET API I should be studying. Under the hood, that might mean GTK+ on Linux. But the API will be essentially the same as Microsoft's.
I did choose to take wxPython-dev list off my "reply all" since I'm not looking to raise hackles, or even defend my choices.
That's fine with me. I was mainly looking for feedback re the Vpython concept (any way to integrate that into the wx event loop?).
The PyGTK thing just happens to be where things are leading me personally. Its partly because VPython on Linux uses GTK and I would like to know it better for that reason. And its partly because ubuntu has helped re-ignite a long dormant interest in Linux as a desktop working environment, and I see GTK/Gnome as the Big Pond in that respect.
This is where my .NET/Mono question surfaces again: behind Gnome is Ximian and behind Ximian is Novelle. And in the middle of it all is Miguel de Icaza. http://www.novell.com/linux/ximian.html What's Miguel going to do? I've seen evidence that he's excited by Python. However, I'm quite distant from the action. I don't trust myself to have informed opinions about all this stuff.
And you in particular will be happy to know that GTK2 *does* have a skins feature ;)
Art
Does it support non-rectangular window-like objects? In wx, there's a demo with Tux floating over the desktop, kind of like the my Halflife skin for the Windows Media Player. Tux isn't as tough-looking. But looks can be deceiving. Kirby

The PyGTK thing just happens to be where things are leading me personally. Its partly because VPython on Linux uses GTK and I would like to know it better for that reason. And its partly because ubuntu has helped re-ignite a long dormant interest in Linux as a desktop working environment, and I see GTK/Gnome as the Big Pond in that respect.
And you in particular will be happy to know that GTK2 *does* have a skins feature ;)
A closer look. wxPython *is* using GTK on Linux. So you can theme wxPython. Relief ;) I don't know what my issue here is really. Maybe when I get into it further I'll understand better why it is a good idea to have a layer between, rather than dealing directly with GTK. At one time, one answer may have been crossplatform issues. But it looks to me that GTK is itself becoming crossplatform. There is native OSX support http://gtk-osx.sourceforge.net/ And Windows http://www.gimp.org/~tml/gimp/win32/ And the .Net framework http://gtk-sharp.sourceforge.net/ On the other hand the wxPython does look juicy - PyCrust itself looks like its worth the price of admission. Its just seems so BIG, and beyond the scope of any immediate needs I might have, other than as a runtime for other folks cool stuff. But I am going to stop resisting, and explore it further. Art

On Sunday 26 December 2004 16:35, Arthur wrote:
I just took a look at the PyGTK 2.0 Tutorial http://www.pygtk.org/pygtk2tutorial/index.html
Very encouraging to see that much documentation spelled out in a usable format.
(snip) I've used gtk/pygtk quite a bit and gtkglext with pyopengl a little bit. I suggest you take a look at glade for designing the interface along with libglade for parsing it. You can find a number of articles/tutorials about using it here (yes, one of them is by me and discusses glade/libglade): http://www.pygtk.org/articles.html I've also found the C documentation for gtk is very easy to use when programming in Python. It is very easy to translate the C functions that take a gtk widget as the first parameter into a method of the specificied pygtk widget. I've used it on Linux/Solaris, Windows XP and Mac OS X and it works fine on all of them. If I was coding for Windows only, I'd probably pick a different widget set, but since I have little interest in programming for Windows right now, I think glade/gtk is a great combination. Dave
participants (3)
-
Arthur
-
Dave Reed
-
Kirby Urner