[Tutor] How to start with Glade.

Timo timomlists at gmail.com
Mon Mar 5 10:45:20 CET 2012


Op 05-03-12 10:31, Ganesh Kumar schreef:
> Hi Guys,
>
> I am new to GUI, I know little bit python, But I do know, How to start 
> with Glade
> and how to combine with .glade file to python. please guide me..
This is more of a question for the PyGTK mailing list.

This is the bare minimum you need:
import gtk

builder = gtk.Builder()
builder.add_from_file("mywindow.ui")
gtk.main()

Ofcourse, alot more can/needs to be done, like connecting signals. You 
should have a google session for "pygtk glade" or something similar and 
plenty of good tutorials and blogposts will show up that will explain 
these things.

Timo

>
> -Ganesh
>
> Did I learn something today? If not, I wasted it.
>
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor



More information about the Tutor mailing list