From: James Kenefick <jkenefic@us...> - 2002-10-24 17:51:00
I am trying to create a toolbar using
a ButtonBox containing some buttons with images,
I'd like to have some toggle buttons on the bar
as well, but thus far I am having no luck. Does
anyone know where I could look at some source
which does this?
Thanks for you time
James M Kenefick Jr.
Linux Technology Center
It is one of the most beautiful compensations
of this life that no man can sincerely try to
help another without helping himself.
-- Ralph Waldo Emerson --
I don't think Pmw.ButtonBox is the right place to start to build a
toolbar. The ButtonBox is mainly designed to be used in Dialog
windows. Apart from handling the default ring of the buttons, it does
not buy you much more than a frame with a bunch of buttons in it.
A toolbar is much more specialised and probably has to be custom-built
for each application, similar to a status line at the bottom. Sorry I
can't suggest a snazzy Pmw.ToolBar megawidget, but it may be easier
just to start with a Tkinter.Frame and add whatever
widgets/megawidgets you need for you application. To position the
widgets in the Frame, you should learn about the Tk grid geometry
manager - it will probably give you the best results.
On Thu 24 Oct 2002 at 12:49:37PM -0500, James Kenefick wrote:
> Hi all
> I am trying to create a toolbar using
> a ButtonBox containing some buttons with images,
> I'd like to have some toggle buttons on the bar
> as well, but thus far I am having no luck. Does
> anyone know where I could look at some source
> which does this?
> Thanks for you time
> James M Kenefick Jr.
> Linux Technology Center
> It is one of the most beautiful compensations
> of this life that no man can sincerely try to
> help another without helping himself.
> -- Ralph Waldo Emerson --
> This sf.net email is sponsored by: Influence the future
> of Java(TM) technology. Join the Java Community
> Process(SM) (JCP(SM)) program now.
> Pmw-general mailing list
Greg McFarlane Really Good Software Pty Ltd Sydney Australia gregm@...