python - Gtk how to add label item child -
as way how learn gtk , python decided re-write program gui build in glade (gtk 2). need little push now, don't know how make hbox child item of label ? or maybe misunderstood ? here's how looks in glade:
how add hbox piece of code ? :
table1.attach(frame, 0, 2, 0, 1, gtk.fill, gtk.fill) notebook1.append_page(table1, label1) align = gtk.alignment(0.5, 0.5, 1, 1) frame.add(align)
you can't create structure shown in glade screenshot: can add 1 child gtkframe. believe glade mistakenly showing internal child of frame (the gtkalignment frame uses layout possible frame label).
don't add gtkalignment @ (use gtkframe api instead if need set frame label alignment). create hbox , add frame, create label , pack hbox.
Comments
Post a Comment