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

Kartik Kumar Perisetla kartik.peri at gmail.com
Sat Jan 19 12:04:40 EST 2013


Thanks alot Gonzalo, it worked.
Appreciate your help!

On Sat, Jan 19, 2013 at 10:15 PM, Gonzalo Odiard <gonzalo at laptop.org> wrote:

> 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/414255bd/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/414255bd/attachment.png>


More information about the Sugar-devel mailing list