I want to learn Python, with which GUI? Glade, PyGTK, Wx?

Chat about Linux in general
carltonh
Level 2
Level 2
Posts: 52
Joined: Sat Dec 23, 2006 12:34 am
Location: Dallas, Texas

I want to learn Python, with which GUI? Glade, PyGTK, Wx?

Postby carltonh » Fri Oct 12, 2007 10:35 pm

I'm a non-programmer teaching myself Python. I'm curious which GUI is best to learn to go with it. Any opinions on the best resources to learn this? I'm learning the Python basics from various references at http://www.Python.org which seem good.

Any opinions on Free Software Python programing projects that a beginner might have some useful part?

Just as a background, I'm an accountant, and so this is a big change, and probably never will be enough to make a career of it.

User avatar
clem
Level 15
Level 15
Posts: 5703
Joined: Wed Nov 15, 2006 8:34 am
Contact:

Postby clem » Sat Oct 13, 2007 8:54 pm

Hi,

Nearly all mint tools were written in Python and use Glade GUIs:)

Check out /usr/lib/linuxmint/ in your computer and have a look in there.

I personally use Gedit to edit the python code (.py files), glade-2 to edit the graphical interface (it lets you design your GUI with the mouse and it saves that in a .glade file which is basically written in XML).

A simple example would be mintDesktop:

gksu gedit /usr/lib/linuxmint/mintDesktop/mintDesktop_frontend.py &
gksu glade-2 /usr/lib/linuxmint/mintDesktop/mintDesktop_frontend.glade&

The python program basically points a the glade file and starts using objects from it... very simple, have a look at the code.

Good luck and enjoy these technologies.

Clem
Image

User avatar
clem
Level 15
Level 15
Posts: 5703
Joined: Wed Nov 15, 2006 8:34 am
Contact:

Postby clem » Sat Oct 13, 2007 8:56 pm

By the way... Glade is just the tool to design GTK interfaces in XML... and pyGTK is just the name for the python bindings for GTK.

Clem
Image

User avatar
hairy_Palms
Level 4
Level 4
Posts: 292
Joined: Mon Nov 27, 2006 10:46 am

Postby hairy_Palms » Sun Oct 14, 2007 6:35 am

ive been learning python for about 6 months now, you should check out anjuta, it integrates with glade nicely


Return to “Chat about Linux”

Who is online

Users browsing this forum: No registered users and 1 guest