Olav Lavell schrieb:

> Perhaps what confuses you is the fact that there is no real difference
> between creating the widget at runtime or getting it from the gladefile.
> In the above example, where Walter wrote:
> 
>     combo = gtk.ComboBox()
> 
> You could also have:
> 
>     gladefile = "test.glade"
>     widget_tree = gtk.glade.XML(gladefile)
>     combo = widget_tree.get_widget("combobox1")
> 
> Same thing, really. The result is a combo object of class gtk.ComboBox.
> Then you start filling its list.

Ah, ok. This really confused me, but your explanation makes it clearer.
Thanks for your example code which helped me get me a little bit more of
a grasp on what I'm actually doing here.

I guess the problem is not pyGTK, but GTK here. pyGTK for those calls
servers merely as a passing to the C layer of GTK - which is indeed
pretty complicated and unintuitive.

Ah, I just hope I'll get there at some point. GTK is just really pretty
and portable, and IMHO the best window kit there is.

Kind regards,
Johannes
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to