Skip to content

Programming desktop apps in python and glade

I have started having a play around with quickly (https://launchpad.net/quickly) today. I have always wanted to have a go at GUI programming — I’m OK at scripting and ‘web’ programming, but the only desktop GUI work I have done has been on windows in Access/VBA :S
Doing the basics seems fine, but I’m jumping straight in at the deep end! The situation I have at the moment is I have my Main window, and on opening it it opens a login window. What I am struggling with is passing data back to the main window from the login window.
So… does anyone know of any tutorials for python with glade? Everything google throws at me seems to be different to the way that quickly sets up the project, and makes them hard to follow. Is the quickly way standard? Should I abandon quickly, and go with one of the tutorials and start again from scratch?

{ 2 } Comments

  1. Andrew | October 25, 2009 at 6:49 am | Permalink

    First of all, quickly is using gtkbuilder not glade, glade is being depreciated, however they are both produced by using the glade interface builder.

    Second of all, glade (or gtkbuilder in this case) is just a simple way of creating user interfaces quickly and visually, instead of creating them by scratch through code. GtkBuilder is just a way of creating PyGTK (python and GTK) applications more visually. You can create an interface through writing the code out, however it is a bit harder :-) Therefore if you need help, you should search for pygtk help.

    I recommend you go through the PyGTK Tutorial, it is a great guide. The documentation available is also great, giving you all the functions you will need to get data from that window.

    Finally if you do get stuck, go on #pygtk on freenode.net (IRC) or you can always email me :-)

    Links:
    Tutorial – http://www.pygtk.org/pygtk2tutorial/ch-Introduction.html
    Reference Manual – http://library.gnome.org/devel/pygtk/stable/

  2. mrben | October 28, 2009 at 9:07 am | Permalink

    Bearing in mind the above comment, which is all true, the guys at http://www.learningpython.com also did some stuff with pygtk and glade. Or catch me or Elleo on #lugradio ;)

Post a Comment

Your email is never published nor shared. Required fields are marked *