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:

glade treeview

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

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -