[pygtk] Adding any kind of widget to toolbar using UIManager and Action
Jose Luis Segura Lucas
josel.segura at gmail.com
Sun Oct 25 01:53:30 WST 2009
Hello!
I'm trying to add a SpinButton to the toolbar of a Pygtk application. I
tried using directly the Toolbar and its methods and it works fine
using a ToolItem and adding the SpinButton into it.
But now, on my app, I'm using UIManager, ActionGroups... and I don't
know how can I add a SpinButton on the UIManager generated toolbar.
I tried with this:
http://library.gnome.org/devel/pygtk/stable/class-gtkaction.html#method-gtkaction--set-tool-item-type
I create a new Action and register it. I create too a class inheriting
from gtk.ToolItem that directly adds my SpinButton, and I register this
class as the type of my new Action, but it doesn't work.
Can somebody help me?
More information about the pygtk
mailing list