[Sugar-devel] The gtk MediaRecord stock is well added to toolbar, but not the gtk MediaPlay

laurent bernabe laurent.bernabe at gmail.com
Fri Mar 9 12:12:07 EST 2012


Hello,

I've solved the problem by writting

playButton = ToolButton(stock_id = gtk.STOCK_MEDIA_PLAY)

instead of

playButton = ToolButton('gtk-media-play')

Regards

Le 9 mars 2012 18:01, laurent bernabe <laurent.bernabe at gmail.com> a écrit :

> Hello everyone,
>
> I'm implementing the new Sugar toolbar in my application LearningWriting.
> I haven't done any commit yet for the problem I'm facing.
>
> I wrote the line
>
> playButton = ToolButton('gtk-media-play') #(line 99)
>
> in order to add a tool button with the play icon. But the space for the
> button is allocated, and no icon is shown.
>
>
> Whereas, if i replace by
>
> playButton = ToolButton('gtk-media-record') #(line 99)
>
> this time I can see the gtk icon for a record button.
>
> Here is my activity code :
>
> http://pastebin.com/kH2Y00i4
>
> Regards
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20120309/8260a99c/attachment.html>


More information about the Sugar-devel mailing list