[Glade-users] Problem with GtkBuilder

On Wed, 2009-10-07 at 14:41 +0330, Aidin Gharibnavaz wrote:

I have a problem with glade, and GtkBuilder. I create a UI with glade,
and load
it in my python application, using following codes:

   builder = gtk.Builder();
It works nicely. But I can't add something to my containers using
'add_child()', or anything else. I do as following:


 It don't throw any error, but also don't add 'mywidget' into the box.

Are you sure "add_child" is the right method? I don't know much of
python, but guessing from my C experience for boxes it should be
something like "pack_start".

 Is it possible to do something like this?
 The reason is that I have a custom widget, and I want to add it to my
 using code. (I couldn't add it to Glade's catalog. Glade's Doc didn't
 Thanks in advanced.

Glade-users maillist  -  Glade-users at lists.ximian.com

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]