Script for learning sizers

I have read through all of this sizer learning information and I still can't figure out the formula for adding spacers to a GridBagSizer. Sometimes they
work as I expect them to, then in other situations I can't get a space in the row or column I want it in. I suppose it is time for me to build a simple
program to play with, but I wonder if there is any way to get gridlines to show up in the GridBagSizer or to get spacers to show up for debugging purposes?
Just a thought.

···

------------------------------------
python2.4, wx-2.6.0-gtk2-ansi

Ron Shoemaker
-------------------------------------

-----Original Message-----
From: Chris Barker [mailto:Chris.Barker@noaa.gov]
Sent: Wednesday, August 03, 2005 5:20 PM
To: wxPython-users@lists.wxwidgets.org
Subject: Re: [wxPython-users] Script for learning sizers

Marcelo Barbero wrote:
> Well, after a little working I think it is going.
>
> Feel free to improve the code.

I haven't improved the code, but I did a little re-arranging of the
wiki, so you can now get straight to the script from:

http://wiki.wxpython.org/index.cgi/UsingSizers

Removing two layers of redirection.

-Chris

--
Christopher Barker, Ph.D.
Oceanographer
                                         
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail:
wxPython-users-help@lists.wxwidgets.org

Sizers are used only for computing the size of their components, so
they have no visible properties per se. You can't turn on grid
lines, for example. But what I often do is to add colored panels to
the sizer; the spacers are (obviously) what is left over (not
colored).

Regards,
Donnal Walter
Arkansas Children's Hospital

···

<Ronnie.A.Shoemaker@usa-spaceops.com> wrote:

I have read through all of this sizer learning information and I
still can't figure out the formula for adding spacers to a
GridBagSizer. Sometimes they work as I expect them to, then in
other situations I can't get a space in the row or column I want
it in. I suppose it is time for me to build a simple program to
play with, but I wonder if there is any way to get gridlines to
show up in the GridBagSizer or to get spacers to show up for
debugging purposes? Just a thought.