Q:

Display a gtk.Spinner in a gtk.ToolButton

Is there a way to display a gtk.Spinner on a gtk.ToolButton instead of a stock image ?
I have tried this :
toolbar = gtk.Toolbar()
toolbar.set_style(gtk.TOOLBAR_BOTH)

toolbutton = gtk.ToolButton()
spinner = gtk.Spinner()
toolbutton.set_icon_widget(spinner)
toolbutton.set_label('Some text')
toolbar.insert(toolbutton, 0)

The label text is been displayed but not the spinner.
What is wrong ?
Thanks

A:

Ok, in fact the real code it's different of my original post :
I call toolbutton.set_icon_widget(spinner) after window.show_all().
So, i have added spinner.show() after the set_icon_widget() method and the problem is solved.

