Spacer Appears to Malfunction

In the attached sample file, I want to keep the static text label adjacent
to its text entry field, but I'd like the pairs to expand when the window is
enlarged. The spacer must have a runtime error that keeps it from working.

   What have I missed here?

Rich

problemPage.py (1.6 KB)

···

--
Richard B. Shepard, Ph.D. | Author of "Quantifying Environmental
Applied Ecosystem Services, Inc. (TM) | Impact Assessments Using Fuzzy Logic"
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863

   In the attached sample file, I want to keep the static text label
adjacent to its text entry field, but I'd like the pairs to expand when the
window is enlarged. The spacer must have a runtime error that keeps it from
working.

You only allow the space between the text and label to expand. Did you want
the wx.TextCtrls to expand, too?

   What have I missed here?

You didn't tell the outerBox that hbox is expandable. Change:
    outerBox.Add(hbox1, 1, wx.ALL, 5)
to
    outerBox.Add(hbox1, 1, wx.EXPAND|wx.ALL, 5)

john

···

On Wednesday 30 November 2005 10:52 am, Rich Shepard wrote:

You only allow the space between the text and label to expand. Did you want
the wx.TextCtrls to expand, too?

John,

   No. I played with that and it looks ugly.

You didn't tell the outerBox that hbox is expandable. Change:
   outerBox.Add(hbox1, 1, wx.ALL, 5)
to
   outerBox.Add(hbox1, 1, wx.EXPAND|wx.ALL, 5)

   Oops! Guess the coffee had not reached full titer in the bloodstream that
early in the morning.

Many thanks,

Rich

···

On Wed, 30 Nov 2005, John Meisner wrote:

--
Richard B. Shepard, Ph.D. | Author of "Quantifying Environmental
Applied Ecosystem Services, Inc. (TM) | Impact Assessments Using Fuzzy Logic"
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863