Python: Placing a gtk.Entry() into a Toolbar
I've searched the web for quite a while and cannot seem to find a way to add a gtk.Entry() to a toolbar via toolbar.insert().
I currently have this: Code:
... How would I do this correctly? Thanks! :D |
I'm not a GTK+ expert (I use Qt), but I found this in the documentation:
ToolItem is a subclass of Bin which is a subclass of Container. Container has an add() method to add a child. So I would try this: Code:
item = gtk.ToolItem() |
Thanks! I agree that all the selfs don't make much sense as is, but there's a lot of code I cut out to get to the point.
Again, Thanks! :D |
All times are GMT -5. The time now is 10:18 PM. |