splitter - wxpython : how to use Spiltter inside the panel with controls? -


class pageoneone(wx.panel): def init(self, parent): wx.panel.init(self, parent) splitter = wx.splitterwindow(self, -1)

    t = self.control = wx.textctrl(splitter, 1, style=wx.te_multiline)      self.lc = wx.listctrl(splitter, -1, style=wx.lc_report)     self.lc.insertcolumn(0, 'state')     self.lc.insertcolumn(1, 'capital')     self.lc.setcolumnwidth(0, 140)     self.lc.setcolumnwidth(1, 153)      vbox = wx.boxsizer(wx.vertical)     vbox.add(splitter, 1, wx.expand)     self.setsizer(vbox)     splitter.splithorizontally(t, self.lc, 20) 

you cannot use splitterwindow text control , list control. have use panels or windows. recommend using panels shouldn't use window widget directly.

the panels may contain other widgets. panelone, add text control child. in paneltwo, create list control child. call splitter window's splithorizontally(panelone, paneltwo, 20)


Comments

Popular posts from this blog

Why can rails not find a route created by a helper? -

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -