[Boa Constr] sizer problem

 [Boa Constr] sizer problem From: Jeff Peery - 2005-07-07 15:30:23 Attachments: text/plain App1.py ```#Boa:Frame:Frame1 import wx def create(parent): return Frame1(parent) [wxID_FRAME1, wxID_FRAME1BUTTON1, wxID_FRAME1BUTTON2, = wxID_FRAME1BUTTON3,=20 wxID_FRAME1LISTBOX1, wxID_FRAME1NOTEBOOK1, wxID_FRAME1PANEL1,=20 wxID_FRAME1PANEL2, wxID_FRAME1PANEL3, wxID_FRAME1PANEL4, = wxID_FRAME1PANEL5,=20 wxID_FRAME1PANEL6, wxID_FRAME1PANEL7, wxID_FRAME1STATICTEXT1,=20 wxID_FRAME1STATICTEXT2, wxID_FRAME1STATICTEXT3,=20 ] =3D [wx.NewId() for _init_ctrls in range(16)] class Frame1(wx.Frame): def _init_coll_boxSizer3_Items(self, parent): # generated method, don't edit parent.AddWindow(self.staticText1, 1, border=3D0, = flag=3Dwx.EXPAND) parent.AddWindow(self.staticText2, 1, border=3D0, = flag=3Dwx.EXPAND) parent.AddWindow(self.staticText3, 1, border=3D0, = flag=3Dwx.EXPAND) def _init_coll_boxSizer4_Items(self, parent): # generated method, don't edit parent.AddWindow(self.boxSizer2, 1, border=3D0, = flag=3Dwx.EXPAND) parent.AddWindow(self.boxSizer3, 1, border=3D0, = flag=3Dwx.EXPAND) def _init_coll_boxSizer1_Items(self, parent): # generated method, don't edit parent.AddWindow(self.boxSizer4, 1, border=3D0, = flag=3Dwx.EXPAND) parent.AddWindow(self.listBox1, 1, border=3D0, flag=3Dwx.EXPAND) def _init_coll_boxSizer2_Items(self, parent): # generated method, don't edit parent.AddWindow(self.button1, 1, border=3D0, flag=3Dwx.EXPAND) parent.AddWindow(self.button2, 1, border=3D0, flag=3Dwx.EXPAND) parent.AddWindow(self.button3, 1, border=3D0, flag=3Dwx.EXPAND) def _init_coll_notebook1_Pages(self, parent): # generated method, don't edit parent.AddPage(imageId=3D-1, page=3Dself.panel1, select=3DTrue, = text=3D'Pages0') parent.AddPage(imageId=3D-1, page=3Dself.panel2, select=3DFalse, text=3D'Pages1') parent.AddPage(imageId=3D-1, page=3Dself.panel3, select=3DFalse, text=3D'Pages2') parent.AddPage(imageId=3D-1, page=3Dself.panel7, select=3DFalse, text=3D'Pages3') parent.AddPage(imageId=3D-1, page=3Dself.panel6, select=3DFalse, text=3D'Pages4') parent.AddPage(imageId=3D-1, page=3Dself.panel5, select=3DFalse, text=3D'Pages5') parent.AddPage(imageId=3D-1, page=3Dself.panel4, select=3DFalse, text=3D'Pages6') def _init_sizers(self): # generated method, don't edit self.boxSizer2 =3D wx.BoxSizer(orient=3Dwx.VERTICAL) self.boxSizer3 =3D wx.BoxSizer(orient=3Dwx.VERTICAL) self.boxSizer4 =3D wx.BoxSizer(orient=3Dwx.HORIZONTAL) self.boxSizer1 =3D wx.BoxSizer(orient=3Dwx.VERTICAL) self._init_coll_boxSizer2_Items(self.boxSizer2) self._init_coll_boxSizer3_Items(self.boxSizer3) self._init_coll_boxSizer4_Items(self.boxSizer4) self._init_coll_boxSizer1_Items(self.boxSizer1) self.panel1.SetSizer(self.boxSizer1) def _init_ctrls(self, prnt): # generated method, don't edit wx.Frame.__init__(self, id=3DwxID_FRAME1, name=3D'', = parent=3Dprnt, pos=3Dwx.Point(331, 274), size=3Dwx.Size(250, 248), style=3Dwx.DEFAULT_FRAME_STYLE, title=3D'Frame1') self.SetClientSize(wx.Size(242, 221)) self.notebook1 =3D wx.Notebook(id=3DwxID_FRAME1NOTEBOOK1, = name=3D'notebook1', parent=3Dself, pos=3Dwx.Point(0, 0), size=3Dwx.Size(242, = 221), style=3Dwx.NB_MULTILINE) self.panel1 =3D wx.Panel(id=3DwxID_FRAME1PANEL1, = name=3D'panel1', parent=3Dself.notebook1, pos=3Dwx.Point(0, 0), = size=3Dwx.Size(234, 177), style=3Dwx.TAB_TRAVERSAL) self.panel2 =3D wx.Panel(id=3DwxID_FRAME1PANEL2, = name=3D'panel2', parent=3Dself.notebook1, pos=3Dwx.Point(0, 0), = size=3Dwx.Size(234, 177), style=3Dwx.TAB_TRAVERSAL) self.panel3 =3D wx.Panel(id=3DwxID_FRAME1PANEL3, = name=3D'panel3', parent=3Dself.notebook1, pos=3Dwx.Point(0, 0), = size=3Dwx.Size(234, 177), style=3Dwx.TAB_TRAVERSAL) self.staticText1 =3D wx.StaticText(id=3DwxID_FRAME1STATICTEXT1, label=3D'staticText1', name=3D'staticText1', = parent=3Dself.panel1, pos=3Dwx.Point(117, 0), size=3Dwx.Size(117, 29), = style=3D0) self.staticText2 =3D wx.StaticText(id=3DwxID_FRAME1STATICTEXT2, label=3D'staticText2', name=3D'staticText2', = parent=3Dself.panel1, pos=3Dwx.Point(117, 29), size=3Dwx.Size(117, 29), = style=3D0) self.staticText3 =3D wx.StaticText(id=3DwxID_FRAME1STATICTEXT3, label=3D'staticText3', name=3D'staticText3', = parent=3Dself.panel1, pos=3Dwx.Point(117, 58), size=3Dwx.Size(117, 29), = style=3D0) self.button1 =3D wx.Button(id=3DwxID_FRAME1BUTTON1, = label=3D'button1', name=3D'button1', parent=3Dself.panel1, pos=3Dwx.Point(0, = 0), size=3Dwx.Size(117, 29), style=3D0) self.button2 =3D wx.Button(id=3DwxID_FRAME1BUTTON2, = label=3D'button2', name=3D'button2', parent=3Dself.panel1, pos=3Dwx.Point(0, = 29), size=3Dwx.Size(117, 29), style=3D0) self.button3 =3D wx.Button(id=3DwxID_FRAME1BUTTON3, = label=3D'button3', name=3D'button3', parent=3Dself.panel1, pos=3Dwx.Point(0, = 58), size=3Dwx.Size(117, 29), style=3D0) self.listBox1 =3D wx.ListBox(choices=3D[], = id=3DwxID_FRAME1LISTBOX1, name=3D'listBox1', parent=3Dself.panel1, pos=3Dwx.Point(0, = 88), size=3Dwx.Size(234, 88), style=3D0) self.panel4 =3D wx.Panel(id=3DwxID_FRAME1PANEL4, = name=3D'panel4', parent=3Dself.notebook1, pos=3Dwx.Point(0, 0), = size=3Dwx.Size(234, 177), style=3Dwx.TAB_TRAVERSAL) self.panel5 =3D wx.Panel(id=3DwxID_FRAME1PANEL5, = name=3D'panel5', parent=3Dself.notebook1, pos=3Dwx.Point(0, 0), = size=3Dwx.Size(234, 177), style=3Dwx.TAB_TRAVERSAL) self.panel6 =3D wx.Panel(id=3DwxID_FRAME1PANEL6, = name=3D'panel6', parent=3Dself.notebook1, pos=3Dwx.Point(0, 0), = size=3Dwx.Size(234, 177), style=3Dwx.TAB_TRAVERSAL) self.panel7 =3D wx.Panel(id=3DwxID_FRAME1PANEL7, = name=3D'panel7', parent=3Dself.notebook1, pos=3Dwx.Point(0, 0), = size=3Dwx.Size(234, 177), style=3Dwx.TAB_TRAVERSAL) self._init_coll_notebook1_Pages(self.notebook1) self._init_sizers() def __init__(self, parent): self._init_ctrls(parent) ```

 [Boa Constr] sizer problem From: Jeff Peery - 2005-07-07 15:30:23 Attachments: text/plain App1.py ```#Boa:Frame:Frame1 import wx def create(parent): return Frame1(parent) [wxID_FRAME1, wxID_FRAME1BUTTON1, wxID_FRAME1BUTTON2, = wxID_FRAME1BUTTON3,=20 wxID_FRAME1LISTBOX1, wxID_FRAME1NOTEBOOK1, wxID_FRAME1PANEL1,=20 wxID_FRAME1PANEL2, wxID_FRAME1PANEL3, wxID_FRAME1PANEL4, = wxID_FRAME1PANEL5,=20 wxID_FRAME1PANEL6, wxID_FRAME1PANEL7, wxID_FRAME1STATICTEXT1,=20 wxID_FRAME1STATICTEXT2, wxID_FRAME1STATICTEXT3,=20 ] =3D [wx.NewId() for _init_ctrls in range(16)] class Frame1(wx.Frame): def _init_coll_boxSizer3_Items(self, parent): # generated method, don't edit parent.AddWindow(self.staticText1, 1, border=3D0, = flag=3Dwx.EXPAND) parent.AddWindow(self.staticText2, 1, border=3D0, = flag=3Dwx.EXPAND) parent.AddWindow(self.staticText3, 1, border=3D0, = flag=3Dwx.EXPAND) def _init_coll_boxSizer4_Items(self, parent): # generated method, don't edit parent.AddWindow(self.boxSizer2, 1, border=3D0, = flag=3Dwx.EXPAND) parent.AddWindow(self.boxSizer3, 1, border=3D0, = flag=3Dwx.EXPAND) def _init_coll_boxSizer1_Items(self, parent): # generated method, don't edit parent.AddWindow(self.boxSizer4, 1, border=3D0, = flag=3Dwx.EXPAND) parent.AddWindow(self.listBox1, 1, border=3D0, flag=3Dwx.EXPAND) def _init_coll_boxSizer2_Items(self, parent): # generated method, don't edit parent.AddWindow(self.button1, 1, border=3D0, flag=3Dwx.EXPAND) parent.AddWindow(self.button2, 1, border=3D0, flag=3Dwx.EXPAND) parent.AddWindow(self.button3, 1, border=3D0, flag=3Dwx.EXPAND) def _init_coll_notebook1_Pages(self, parent): # generated method, don't edit parent.AddPage(imageId=3D-1, page=3Dself.panel1, select=3DTrue, = text=3D'Pages0') parent.AddPage(imageId=3D-1, page=3Dself.panel2, select=3DFalse, text=3D'Pages1') parent.AddPage(imageId=3D-1, page=3Dself.panel3, select=3DFalse, text=3D'Pages2') parent.AddPage(imageId=3D-1, page=3Dself.panel7, select=3DFalse, text=3D'Pages3') parent.AddPage(imageId=3D-1, page=3Dself.panel6, select=3DFalse, text=3D'Pages4') parent.AddPage(imageId=3D-1, page=3Dself.panel5, select=3DFalse, text=3D'Pages5') parent.AddPage(imageId=3D-1, page=3Dself.panel4, select=3DFalse, text=3D'Pages6') def _init_sizers(self): # generated method, don't edit self.boxSizer2 =3D wx.BoxSizer(orient=3Dwx.VERTICAL) self.boxSizer3 =3D wx.BoxSizer(orient=3Dwx.VERTICAL) self.boxSizer4 =3D wx.BoxSizer(orient=3Dwx.HORIZONTAL) self.boxSizer1 =3D wx.BoxSizer(orient=3Dwx.VERTICAL) self._init_coll_boxSizer2_Items(self.boxSizer2) self._init_coll_boxSizer3_Items(self.boxSizer3) self._init_coll_boxSizer4_Items(self.boxSizer4) self._init_coll_boxSizer1_Items(self.boxSizer1) self.panel1.SetSizer(self.boxSizer1) def _init_ctrls(self, prnt): # generated method, don't edit wx.Frame.__init__(self, id=3DwxID_FRAME1, name=3D'', = parent=3Dprnt, pos=3Dwx.Point(331, 274), size=3Dwx.Size(250, 248), style=3Dwx.DEFAULT_FRAME_STYLE, title=3D'Frame1') self.SetClientSize(wx.Size(242, 221)) self.notebook1 =3D wx.Notebook(id=3DwxID_FRAME1NOTEBOOK1, = name=3D'notebook1', parent=3Dself, pos=3Dwx.Point(0, 0), size=3Dwx.Size(242, = 221), style=3Dwx.NB_MULTILINE) self.panel1 =3D wx.Panel(id=3DwxID_FRAME1PANEL1, = name=3D'panel1', parent=3Dself.notebook1, pos=3Dwx.Point(0, 0), = size=3Dwx.Size(234, 177), style=3Dwx.TAB_TRAVERSAL) self.panel2 =3D wx.Panel(id=3DwxID_FRAME1PANEL2, = name=3D'panel2', parent=3Dself.notebook1, pos=3Dwx.Point(0, 0), = size=3Dwx.Size(234, 177), style=3Dwx.TAB_TRAVERSAL) self.panel3 =3D wx.Panel(id=3DwxID_FRAME1PANEL3, = name=3D'panel3', parent=3Dself.notebook1, pos=3Dwx.Point(0, 0), = size=3Dwx.Size(234, 177), style=3Dwx.TAB_TRAVERSAL) self.staticText1 =3D wx.StaticText(id=3DwxID_FRAME1STATICTEXT1, label=3D'staticText1', name=3D'staticText1', = parent=3Dself.panel1, pos=3Dwx.Point(117, 0), size=3Dwx.Size(117, 29), = style=3D0) self.staticText2 =3D wx.StaticText(id=3DwxID_FRAME1STATICTEXT2, label=3D'staticText2', name=3D'staticText2', = parent=3Dself.panel1, pos=3Dwx.Point(117, 29), size=3Dwx.Size(117, 29), = style=3D0) self.staticText3 =3D wx.StaticText(id=3DwxID_FRAME1STATICTEXT3, label=3D'staticText3', name=3D'staticText3', = parent=3Dself.panel1, pos=3Dwx.Point(117, 58), size=3Dwx.Size(117, 29), = style=3D0) self.button1 =3D wx.Button(id=3DwxID_FRAME1BUTTON1, = label=3D'button1', name=3D'button1', parent=3Dself.panel1, pos=3Dwx.Point(0, = 0), size=3Dwx.Size(117, 29), style=3D0) self.button2 =3D wx.Button(id=3DwxID_FRAME1BUTTON2, = label=3D'button2', name=3D'button2', parent=3Dself.panel1, pos=3Dwx.Point(0, = 29), size=3Dwx.Size(117, 29), style=3D0) self.button3 =3D wx.Button(id=3DwxID_FRAME1BUTTON3, = label=3D'button3', name=3D'button3', parent=3Dself.panel1, pos=3Dwx.Point(0, = 58), size=3Dwx.Size(117, 29), style=3D0) self.listBox1 =3D wx.ListBox(choices=3D[], = id=3DwxID_FRAME1LISTBOX1, name=3D'listBox1', parent=3Dself.panel1, pos=3Dwx.Point(0, = 88), size=3Dwx.Size(234, 88), style=3D0) self.panel4 =3D wx.Panel(id=3DwxID_FRAME1PANEL4, = name=3D'panel4', parent=3Dself.notebook1, pos=3Dwx.Point(0, 0), = size=3Dwx.Size(234, 177), style=3Dwx.TAB_TRAVERSAL) self.panel5 =3D wx.Panel(id=3DwxID_FRAME1PANEL5, = name=3D'panel5', parent=3Dself.notebook1, pos=3Dwx.Point(0, 0), = size=3Dwx.Size(234, 177), style=3Dwx.TAB_TRAVERSAL) self.panel6 =3D wx.Panel(id=3DwxID_FRAME1PANEL6, = name=3D'panel6', parent=3Dself.notebook1, pos=3Dwx.Point(0, 0), = size=3Dwx.Size(234, 177), style=3Dwx.TAB_TRAVERSAL) self.panel7 =3D wx.Panel(id=3DwxID_FRAME1PANEL7, = name=3D'panel7', parent=3Dself.notebook1, pos=3Dwx.Point(0, 0), = size=3Dwx.Size(234, 177), style=3Dwx.TAB_TRAVERSAL) self._init_coll_notebook1_Pages(self.notebook1) self._init_sizers() def __init__(self, parent): self._init_ctrls(parent) ```