Abel Daniel <[EMAIL PROTECTED]> writes:

> I tried column.set_widget(gtk.Label('foo')),
> but instead of what I expected (getting a label in the header, the
> same as passing in 'foo' when creating the TreeViewColumn), I got
> an empty, about 9 pixel wide, empty header.
> 
> What am I doing wrong? 

You need to show() the widget before you set it as the column header.

Something like

    label = gtk.Label('foo')
    label.show()
    column.set_widget(label)

should work better.
_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to