Adding any kind of widget to toolbar using UIManager and Action

View: New views
1 Messages — Rating Filter:   Alert me  

Adding any kind of widget to toolbar using UIManager and Action

by José Luis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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?
_______________________________________________
pygtk mailing list   pygtk@...
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/