On Wed, Mar 21, 2001 at 05:12:40PM +0000, Michael Roberts wrote:
> On Wed, 21 Mar 2001 09:46:04 -0600 (CST)
> Skip Montanaro <[EMAIL PROTECTED]> wrote:
> 
> > 
> >     Mike> Is it possible to add lined borders to Gtk container widgets such
> >     Mike> as GtkTable and the Gtk H/V Boxes? (Also other widgets in general
> >     Mike> but I'm focused on these at the moment)
> > 
> > Sure.  Just enclose them in a frame widget:
> > 
> Thanks, I realise I can use a frame to get a simple rectangular border.  However, it 
>doesn't let me have intersecting lines in a GtkTable and that's what I'm really 
>after.  Is it something that the table widget supports, or is the widget only 
>designed to be used for layout and not as a table would be drawn by hand?
> 
GtkTable is only for doing layout. I guess it is theoretically possible
to have very narrow (1-3 pixels) columns with another background to
create borders. If your app is a GNOME app, you can use the GtkHTML or
XmHTML widget to display tables.

For GNU Solfege, I used GtkTable and inserted a few GtkVSeparator and
GtkHSeparator to make borders. This because I wanted it to run on win32
too, and that platform it don't have a html widget and I wanted it to be
possible to compile the app without the GNOME libraries.

You can see how this looks at
http://www.solfege.org/screenshots/harmonic-intervall-statistics.png

> Thanks
> 
> Mike
> _______________________________________________
> pygtk mailing list   [EMAIL PROTECTED]
> http://www.daa.com.au/mailman/listinfo/pygtk
> 

-- 
Tom Cato Amundsen <[EMAIL PROTECTED]>
GNU Solfege - free eartraining, http://www.gnu.org/software/solfege/
_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk

Reply via email to