import wx class MyFrame(wx.Frame): def __init__(self): super().__init__(parent=None, title='高级窗口', size=(350, 180)) self.Center() splitter = wx.SplitterWindow(self, -1) leftpanel = wx.Panel(splitter) rightpanel = wx.Panel(splitter) splitter.SplitVertically(leftpanel, rightpanel, 100) splitter.SetMinimumPaneSize(80) splitter_right = wx.SplitterWindow(rightpanel, -1) rightpanel_top = wx.Panel(rightpanel) rightpanel_bottom = wx.Panel(rightpanel) splitter_right.SplitHorizontally(rightpanel_top, rightpanel_bottom, -1) list2 = ['苹果', '桔子', '香蕉', '椰子', '1', '2', '3', '4', '5', '6', '7'] lb2 = wx.ListBox(leftpanel, -1, choices=list2, style=wx.LB_SINGLE) self.Bind(wx.EVT_LISTBOX, self.listbox, lb2) vbox = wx.BoxSizer(wx.VERTICAL) vbox.Add(lb2, 1, flag=wx.ALL | wx.EXPAND, border=5) leftpanel.SetSizer(vbox) vbox2 = wx.BoxSizer(wx.VERTICAL) self.text = wx.StaticText(rightpanel_top, label='右上侧面板') vbox2.Add(self.text, 1, flag=wx.ALL | wx.EXPAND, border=5) vbox3 = wx.BoxSizer(wx.VERTICAL) self.text1 = wx.StaticText(rightpanel_top, label='右下侧面板') vbox3.Add(self.text, 1, flag=wx.ALL | wx.EXPAND, border=5) def listbox(self, event): s = '选择{0}'.format(event.GetString()) self.text.SetLabel(s) pass class App(wx.App): def OnInit(self): frame = MyFrame() frame.Show() return True app = App() app.MainLoop()
求大神帮我改改,我想把它分为左侧,右上,右下三栏,应该怎么写