ich hab ein Panel, um welches ein Frame gebaut ist:
Code: Alles auswählen
class Frame(wx.Frame):
def __init__(self, *args, **kwds):
kwds["style"] = wx.DEFAULT_FRAME_STYLE
wx.Frame.__init__(self, *args, **kwds)
width = 400
height = 200
self.SetSize((width, height))
self.SetMinSize((width, height))
panel = wx.Panel(self, -1)
all = Panel(panel, -1)
hbox = wx.BoxSizer()
hbox.Add(all, 1, wx.EXPAND|wx.ALL, 5)
panel.SetSizer(hbox)
self.Show(True)
if __name__ == "__main__":
try:
app = wx.App()
Frame(None, -1, u"Test")
app.MainLoop()
finally:
del app
Jemand eine Ahnung wie ich das anstellen könnte?
Grüße
