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

Chat about Linux in general

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

Postby carltonh on 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.
carltonh
Level 2
Level 2
 
Posts: 53
Joined: Sat Dec 23, 2006 12:34 am
Location: Dallas, Texas

Linux Mint is funded by ads and donations.
 

Postby clem on 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: 5580
Joined: Wed Nov 15, 2006 8:34 am

Postby clem on 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
clem
Level 15
Level 15
 
Posts: 5580
Joined: Wed Nov 15, 2006 8:34 am

Postby hairy_Palms on 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
User avatar
hairy_Palms
Level 4
Level 4
 
Posts: 297
Joined: Mon Nov 27, 2006 10:46 am


Return to Chat about Linux

Who is online

Users browsing this forum: MintMaid and 3 guests