[Glade-users] Problem with GtkBuilder

On Wed, Oct 7, 2009 at 10:37 AM, Alexey Kurochkin
<alexey.kurochkin at pathfinderlwd.com> wrote:
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();
? ?builder.add_from_file("sample.glade")

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

? ?builder.get_object('vbox1').add_child(mywidget)

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

Hmm, is it possible that the toplevel 'vbox1' in your project that you are
trying to parent is set to be visible=false ? ... just a guess... it would be
a classic case of seems to not work...


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