Thank you so much. I solved editing the .xml by hand! On Sun, Feb 28, 2010 at 9:53 PM, Tadej Borovšak <tadeb...@gmail.com> wrote: > Hello > >> Today working with glade, I noticed a strange behaviour while working >> with GtkAdjustment. >> >> import gtk >> >> str_gui = """ >> <?xml version="1.0"?> >> <interface> >> <requires lib="gtk+" version="2.16"/> >> <!-- interface-naming-policy project-wide --> >> <object class="GtkAdjustment" id="foo"> >> <property name="value">10</property> >> <property name="lower">1</property> >> <property name="upper">100</property> >> <property name="step_increment">1</property> >> </object> >> </interface> >> """ >> >> builder = gtk.Builder() >> builder.add_from_string(str_gui) >> print builder.get_object('foo').get_value() >> >> The output is 0.0 and not 10 as espected. Is this something already known? > > This is a known problem and I think it is already fixed in git master. > Basically, I boils down to the fact that properties need to be > specified in right order for GtkBuilder to work properly. See this bug > report for more info: > https://bugzilla.gnome.org/show_bug.cgi?id=594372 > > Tadej > > -- > Tadej Borovšak > tadeboro.blogspot.com > tadeb...@gmail.com > tadej.borov...@gmail.com >
-- Matteo Landi http://www.matteolandi.net/ _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list