- Python - http://video.google.com/videoplay?docid=5838951374743244232
- Java - http://people.redhat.com/overholt/nativeeclipse/index.html
- Ruby - http://robrohan.com/2007/05/21/linux-gui-programming-with-ruby/
The video for using Glade with Python is not very clear, so I'll explain a little bit the process below.
1. Build your GUI
2. Open a .py file, and import gtk and gtk.glade
#!/usr/bin/python
import gtk
import gtk.glade
3. define your handlers method
def hander_method(widget):
do_something_here
do_more
4. load the glade XML
xml = gtk.glade.XML("/path/to/glade/file")
5. connect handlers to its methods/functions
dict = { 'handler_name' : handler_method,
'handler_name2' : handler_method2
}
xml.signal_autoconnect(dict)
6. run gtk instance
gtk.main()
I also have written a similar script to the ruby glade template generator in Video 3. It'll generate a very basic Python template for use. ( I couldn't find where to download GladeGen )
pyglade-gentemplate.py