You are not logged in.

#1 2009-05-27 12:12:20

genisis300
Member
From: Uk
Registered: 2008-01-15
Posts: 284

Gui programming Python

Hi All,
I'm looking to improve / learn more on gui programming within python.

I'm not sure if i should be writing the code manualy or using the libglade / glade designer to produce results.

My main aim with most of my programming is to keep things slim. i use openbox so i don't want to pull in loads of gnome crap to make something work.


How do you guys go about it etc?


Regards
Matthew


"is adult entertainment killing our children or is killing our children entertaining adults?" Marilyn Manson

Offline

#2 2009-05-27 13:00:23

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Gui programming Python

genisis300 wrote:

My main aim with most of my programming is to keep things slim.

'Slim', 'good' and 'expensive' are relative. If you're starting w/ python and not bash + Xdialog than why not go all the way and automate most of you job w/ glade etc.? Find a project you like that uses python for GUI programming and ask them how they do it.

Offline

#3 2009-05-27 13:12:13

cleanrock
Member
Registered: 2008-11-17
Posts: 109

Re: Gui programming Python

wxpython, not so slim but portable

Offline

#4 2009-05-27 13:26:40

Zariel
Member
Registered: 2008-10-07
Posts: 446

Re: Gui programming Python

I started with PyQt, it was very good.

Offline

#5 2009-05-27 13:56:15

keenerd
Package Maintainer (PM)
Registered: 2007-02-22
Posts: 647
Website

Re: Gui programming Python

If you don't actually want to learn anything, EasyGUI covers a lot of use cases.  It is basically xdialog in python/tk.

Offline

#6 2009-05-27 14:16:18

randomguy
Member
Registered: 2007-06-19
Posts: 101

Re: Gui programming Python

PyGTK is used by quite a lot of projects, haven't looked into it yet though.

Offline

#7 2009-05-27 14:21:45

dmartins
Member
Registered: 2006-09-23
Posts: 360

Re: Gui programming Python

I guess your options are pyQt, pyGtk, Tkinter (included with python), and wxPython.

I've been playing around with wxpython for a little while now and I quite like it. I really enjoy that it is fairly cross platform (without requiring gtk, qt, or tk/tcl on Windows or Mac) and the wxpython demo program is just fantastic.

IIRC, the demo isn't packaged with wxpython in Arch, but you can download it separately and extract it to a folder in your home directory with no problems.

Offline

#8 2009-05-30 00:23:31

jorpheus
Member
Registered: 2008-11-07
Posts: 98

Re: Gui programming Python

+1 for wxPython

Offline

#9 2009-05-31 01:06:11

linkmaster03
Member
Registered: 2008-12-27
Posts: 269

Re: Gui programming Python

I'm having fun making a few simple things in Glade 3 and PyGTK. Maybe Glade isn't how you want to fly, but it's worth a try.

Offline

#10 2009-05-31 03:07:52

Chokkan
Member
Registered: 2009-04-06
Posts: 129

Re: Gui programming Python

I use glade and pyGTK too.


< Daenyth> tomkx: my girlfriend is linux
< Daenyth> srsly
< Daenyth> she loves the way I «make install»
< Daenyth> all her /dev entries are mode 7 for me

Offline

#11 2009-05-31 08:43:30

WhiteMagic
Member
Registered: 2007-03-01
Posts: 85

Re: Gui programming Python

I tend to use glade / designer when I have to make a GUI that is more or less static, there is no point in creating the whole gui by handcoding it, other then for getting to know the toolkit of course. If however the gui is very dynamic, i.e. changes a lot based on the user interaction I code all the gui relating things by hand.

Offline

#12 2009-05-31 11:17:45

genisis300
Member
From: Uk
Registered: 2008-01-15
Posts: 284

Re: Gui programming Python

I've been looking at the Glade designer. It looks okay still getting used to it.
Thanks for your feedback smile


"is adult entertainment killing our children or is killing our children entertaining adults?" Marilyn Manson

Offline

Board footer

Powered by FluxBB