Okay, I am close to getting this right I think, using your drawing and
the code that I had, but I still don't get how I create a panel and
assign it to the left or right side of the BoxSizer. The creation of a
panel doesn't specify the parent and there is no .Add for a panel,
right?
--vicki
···
-----Original Message-----
From: Samuel Reynolds [mailto:sam@SpinwardStars.com]
Sent: Monday, July 12, 2004 3:32 PM
To: wxPython-users@lists.wxwidgets.org
Subject: Re: [wxPython-users] How to divide gui space proportionally.At 2004-07-09 02:08 PM -0500, you wrote:
I am back into the design business, trying to create a gui using
wxPython
and the picture drawn by my boss. He says, "Divide the spacewhere the top
one third or so is the output box and the bottom two thirds
is divided
vertically in half. Put the correct stuff in each half." He
knows even
less of how this stuff works than I do. I have written code
that creates a
box sizer and added a textctrl widget at the top, two radio
buttons next,
etc, but resizing screws it all up. I will attempt to draw in
ascii art
what I want it to look like:
Sounds like wx.BoxSizer will give you the overall layout.
'Ware the wrap.+--------------------------------------------------------------
---------+wx.BoxSizer(wx.VERTICAL)
>
+-------------------------------------------------------------------+ |
> (text output box)
> >
+-------------------------------------------------------------------+ |
+-------------------------------------------------------------------+ |
> wx.BoxSizer(wx.HORIZONTAL)
> >
>
>
> >
> +------------------------------++------------------------------+ | |
> > wx.Panel | | wx.Panel
> > >
> > +--------------------------+ | |
+--------------------------+ | | |
> > > wx.BoxSizer(wx.VERTICAL) | | | |
wx.BoxSizer(wx.VERTICAL) | | | |
> > > [widget] | | | | [widget]
> > > >
> > > [widget] | | | | [widget]
> > > >
> > +--------------------------+ | |
+--------------------------+ | | |
> +------------------------------+
+------------------------------+ | |
+-------------------------------------------------------------------+ |
+--------------------------------------------------------------
---------+- Sam
__________________________________________________________
Spinward Stars, LLC Samuel Reynolds
Software Consulting and Development 303-805-1446
http://SpinwardStars.com/ sam@SpinwardStars.com---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail:
wxPython-users-help@lists.wxwidgets.org