Hi, I'm trying to do this : http://www.pygtk.org/pygtk2tutorial/figures/comboboxwrap.png but I would like to have a customised button. The popup() method does not seem to work when I connect it to a customised gtk.Button() if the combobox is hidden (in fact I just want to have the button of the combobox hidden).
Maybe there is other way to do what I want. I had a look to gtk.Menu() but there is not wrap mode like the combobox has (to have the same render of the screenshot above). Another thing I tried is to use the set_active() method on the item I always want to have by default on the button. But the problem is that the 'changed' signal does not work on the default item (of course). It seems there is no 'selected' signal which act as the 'changed' one but with the unchanged item too... So if you have any idea, I'll be very gratefull, it's been a while I'm on this problem... Another thing : I think I found a mistake in the documentation while looking for my problem. On this page : http://www.pygtk.org/docs/pygtk/class-gtkcombobox.html the propery "popup-shown" is marked as Read-Write, but it seems to be readonly : TypeError: property 'popup-shown' is not writable. Thanks. -- ubitux _______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
