[Sugar-devel] StopButton not getting right aligned in GTK3

Gonzalo Odiard gonzalo at laptop.org
Sat Jan 19 11:45:04 EST 2013


You need add a invisible separator with expanded = True, see:

http://git.sugarlabs.org/hello-world/mainline/blobs/master/activity.py#line62

Gonzalo

On Sat, Jan 19, 2013 at 3:54 AM, Kartik Kumar Perisetla <
kartik.peri at gmail.com> wrote:

> Hi,
>
> I have used this snippet to right align stop button on Toolbox's toolbar:
> using sugar3.
>
> *from sugar3.graphics.toolbarbox import ToolbarBox
> from sugar3.activity.widgets import StopButton
>         ....
>         **#add toolbox
>         toolbox= ToolbarBox(self)
>         **#stop button
>         stop_button=StopButton(self)
>         toolbox.toolbar.insert(stop_button,-1)*
>
> But it is not getting aligned there and is still visible next to previous
> buttons on toolbar:
> [image: Inline image 1]
> Can anyone tell me if I am missing something?
>
> Cheers!
> Kartik
>
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20130119/e90a8597/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: stopButton.png
Type: image/png
Size: 3233 bytes
Desc: not available
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20130119/e90a8597/attachment.png>


More information about the Sugar-devel mailing list