I have some problems putting widgets ina BoxSizer. I experiment a lot but it doesn't seems to do what i like, i must be missing something. What i'm trying to do is to add button1 to a boxsizer for keeping button1 position at the bottom when resizing or going fullscreen. Can someone help me with that ? I'm sure it's pretty simple but i just can't get it right. Thank you.
I have the following test code:
-
import wx
-
-
class MyFrame(wx.Frame):
-
def __init__(self, parent, id, title):
-
wx.Frame.__init__(self, parent, id, title, (-1, -1), wx.Size(450, 300))
-
panel = wx.Panel(self, -1)
-
button1=wx.Button(panel, -1, "button1", pos=(30, 230))
-
-
-
class MyApp(wx.App):
-
def OnInit(self):
-
frame = MyFrame(None, -1, 'layout3.py')
-
frame.Show(True)
-
return True
-
-
app = MyApp(0)
-
app.MainLoop()
-