felipe
May 10th, 2005, 12:25 PM
Hi, i am searching for a python tutorial on how to create simple projects in PyGTK/PyGNOME + Glade.
the ones I found on google are a bit contraddictory because i think they are targeted towards different versions of glade or pygtk or python etc...
i'd just like to:
1) design a simple interface in glade
2) use the glade interface to write some really simple python app like:
#!/usr/bin/env python
import <something _anyone_ has already installed by default or similar>
def MyCoolFunction():
bla bla bla #most notably write and read (xml) config files
widgetTree = <the_magic_word_here>("project.glade")
dic = { "on_cool_event" : MyCoolFunction }
widgetTree.signal_autoconnect (dic)
gtk.main ()
Any clue? I'd like to write some simple frontends to (not-only)Ubuntu/GNOME common user configuration tasks, so i need some commented examples glued in a nice tutorial :)
so far i found:
http://primates.ximian.com/~sandino/python-glade/ #cool, but it relies on the SimpleGladeApp.py library... Bad (for my needs)
http://www.arson-network.com/index.php?class=tutorial&subargs=430 #too little info, just a small page
http://sjbrown.users.geeky.net/metagame-sector/tutorial.html #very nice, but guess it's oriented towards an older version of glade/pygtk/whatever because it doesn't work :/
thanks for your help
the ones I found on google are a bit contraddictory because i think they are targeted towards different versions of glade or pygtk or python etc...
i'd just like to:
1) design a simple interface in glade
2) use the glade interface to write some really simple python app like:
#!/usr/bin/env python
import <something _anyone_ has already installed by default or similar>
def MyCoolFunction():
bla bla bla #most notably write and read (xml) config files
widgetTree = <the_magic_word_here>("project.glade")
dic = { "on_cool_event" : MyCoolFunction }
widgetTree.signal_autoconnect (dic)
gtk.main ()
Any clue? I'd like to write some simple frontends to (not-only)Ubuntu/GNOME common user configuration tasks, so i need some commented examples glued in a nice tutorial :)
so far i found:
http://primates.ximian.com/~sandino/python-glade/ #cool, but it relies on the SimpleGladeApp.py library... Bad (for my needs)
http://www.arson-network.com/index.php?class=tutorial&subargs=430 #too little info, just a small page
http://sjbrown.users.geeky.net/metagame-sector/tutorial.html #very nice, but guess it's oriented towards an older version of glade/pygtk/whatever because it doesn't work :/
thanks for your help