Hello, and happy holidays to everybody.
        
I am observing strange packing behavior of the Expander
widget. Consider the following piece of code:
===========
import gtk

d = gtk.Dialog('Dialog')
d.connect('delete-event',lambda obj,event: gtk.main_quit())

e = gtk.Expander('Expander')
e.add(gtk.Label('Label\nAnother line\nand another line'))

d.vbox.add(e)
d.show_all()

e.set_expanded(True)
e.set_expanded(False)

gtk.main()
===========

When expander is expanded and then collapsed programmatically,
the whole window is collapsed. But if I click to expand the
expander and then click to collapse it, the window stays
expanded.

Do I have to do some more packing magic (how?) or
is this bug in pygtk?

Thanks in advance,

Don Allingham and Alex Roitman 
        
-- 
Don Allingham
http://gramps-project.org

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to