From: James K. <jke...@us...> - 2002-10-28 14:34:14
|
Thanks, using a frame is exactly what I ended up doing :) -James -- James M Kenefick Jr. Linux Technology Center jke...@us... 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 -- Greg McFarlane <gr...@in...>@hwy.com.au> on 10/27/2002 04:56:13 AM Sent by: Greg McFarlane <gr...@hw...> To: James Kenefick/Austin/IBM@IBMUS cc: pmw...@li... Subject: Re: [Pmw-general] Stupid toolbar question 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. Greg 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 > > > -- > James M Kenefick Jr. > Linux Technology Center > jke...@us... > > > 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. > http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0003en > _______________________________________________ > Pmw-general mailing list > Pmw...@li... > https://lists.sourceforge.net/lists/listinfo/pmw-general > -- Greg McFarlane Really Good Software Pty Ltd Sydney Australia gr...@in... |