pee1
1
Hi,
I want to add a button to a panel, but the panel is always overlapping
the button. See an image of the display:
http://img3.imagebanana.com/img/nhfryhtl/SmallEditor_014.png.
The minimized code:
self.startButton = wx.Button(self,0, "Start")
panel = wx.Panel(self, -1)
box = wx.BoxSizer(wx.HORIZONTAL)
box.Add(self.startButton, 0, wx.EXPAND)
panel.SetSizer(box)
panel.Fit()
self.Centre()
What should I do, to insert my button properly into the frame-panel?
Thank's in front for your reply.
Best regards!
Robin
2
The button should be a child of the panel.
···
On 8/23/10 11:00 AM, pee wrote:
Hi,
I want to add a button to a panel, but the panel is always overlapping
the button. See an image of the display:
http://img3.imagebanana.com/img/nhfryhtl/SmallEditor_014.png.
The minimized code:
self.startButton = wx.Button(self,0, "Start")
panel = wx.Panel(self, -1)
box = wx.BoxSizer(wx.HORIZONTAL)
box.Add(self.startButton, 0, wx.EXPAND)
panel.SetSizer(box)
panel.Fit()
self.Centre()
What should I do, to insert my button properly into the frame-panel?
Thank's in front for your reply.
--
Robin Dunn
Software Craftsman