[pygtk] Toolbar layout button to right
Neil Dugan
pygtk at butterflystitches.com.au
Wed Feb 20 14:23:41 WST 2008
Edward Stow wrote:
> Hi,
>
> I'm having trouble packing a toolbar.
>
> I require a toolbar with 3 buttons packed to the left and one that is
> always on the right. As illustrated below.
>
> [Button1__Button2__Button3__________________________________Button4]
>
> Packing the three to the left is ok. This is the default behaviour of
> glade when constructing the toolbar.
>
> My question is how to have the right button (button4) on the right hand side.
>
> I tried adding a ToolbarItem, with a HBox and the button in the the
> last hbox container.
>
> Running this does not work - even though glade shows the button on the
> right hand side.
>
> Any suggestions:
>
> Thanks
Have you tried to do a pack_start() on buttons1--3 and a pack_end() on
button4, or with glade set the buttons pack type to start/end.
Regards Neil.
More information about the pygtk
mailing list