[pygtk] Toolbar layout button to right
ed.stow at gmail.com
Thu Feb 21 07:00:07 WST 2008
Glade does not appear to set the expand property on toolbar items ...
can this be verified?
Using glade 3.2.0 -- setting the packing expand option to Yes appears
to have no effect - when the ToolItem is created by gladed the expand
property is False.
Note that the Glade UI shows that the item has been expanded in the UI
builder but when running the application the item is not expanded.
Or am I just missing on some other option to be set.
On Thu, Feb 21, 2008 at 5:16 AM, Edward Stow <ed.stow at gmail.com> wrote:
> On Wed, Feb 20, 2008 at 10:36 AM, Gian Mario Tagliaretti
> <gianmt at gnome.org> wrote:
> > On Feb 20, 2008 12:21 AM, Edward Stow <ed.stow at gmail.com> wrote:
> > Hi Edward,
> > > 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]
> > You can use a gtk.SeparatorToolItem setting its expand property to True.
> > http://www.pygtk.org/docs/pygtk/class-gtkseparatortoolitem.html
> This almost works except when you set_visible_horizontal(False) - to
> hide the vertical bar naturally voids the expand property.
> But using a ToolItem does work:
> toolbar = gtk.Toolbar()
> sep = gtk.ToolItem()
> toolbar.insert(gtk.ToolButton(None, 'Button 1'), 0)
> toolbar.insert(sep, 1)
> toolbar.insert(gtk.ToolButton(None, 'Button 2'), 2)
> Edward Stow
More information about the pygtk