steve at holdenweb.com
Thu Mar 9 20:00:59 CET 2006
Matthias Kluwe wrote:
>>Matthias Kluwe wrote:
>>>I'd like to place several StaticBoxes in a frame, but I can't get it
>>>Consider the following code:
>>>app = wx.PySimpleApp()
>>>frame = wx.Frame(parent=None, title="Test")
>>>box = wx.BoxSizer(wx.VERTICAL)
>>>upper_box = wx.StaticBox(parent=frame, label="Upper Box")
>>You should remiove this line.
> Hmm. As I see it, this means constructing the StaticBox and not placing
> it in the frame. Obviously, this does not help.
Did you actually try removing the line and running the program? Guess
what: the button appears inside the static box sizer. And your problem
with that would be ... ?
>>>What am I missing?
>>Generally speaking what you appear to be missing is a methodical
>>approach to GUI consruction. This reminds me of a lot of my early
>>experiments with wxPython code :-)
> "a methodical approach to GUI construction"? Please be more specific --
> any hints are welcome. Clearly, the above is an experiment with
> wxPython, not anything methodical. This may follow when I understand
> how StaticBoxSizer works.
Well, "methodical" would seem to include testing the suggestions of
well-meaning fellow netizens, for a start, rather than using your
psychic powers to predict results.
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC/Ltd www.holdenweb.com
Love me, love my blog holdenweb.blogspot.com
More information about the Python-list