I would like gtk.ProgressBar to be added to gtk.Menu, but since there are only gtk.MenuItems and its subclasses in the menu, I instead made a simple gtk.MenuItem and tried to add my progress as a child to this. Since gtk.MenuItem is a subclass of gtk.Bin, it should be able to store almost any widget.
Example:
menu = gtk.Menu() item = gtk.MenuItem() button = gtk.ProgressBar() button.pulse() button.show() item.add(button) item.show() menu.append(item)
This works fine even if the pigt doesn't complain at all. However, my progress bar is simply not shown:

If I replaced the progress indicator with gtk.Label, it showed that it was just fine.
Now to my questions:
- How to find out which widgets you need?
- How can I trick him into letting me post other widgets there?
Tommy brunn
source share