def __init__(self, parent, ID): MultiSplitterWindow.__init__(self, parent, ID) self.SetOrientation( wx.VERTICAL ) self._controller = eDevController() self._controller.setNavigator(self) self._panels = list()
def __init__(self, place, orientation, **kwds): self.orientation = orientation MultiSplitterWindow.__init__(self, place[0], style=wx.SP_LIVE_UPDATE) Widget.__init__(self, place, **kwds) Container.__init__(self) self.SetOrientation({ 'horizontal': wx.HORIZONTAL, 'vertical': wx.VERTICAL }[orientation])
def __init__(self, parent, player, artists_list): MultiSplitterWindow.__init__(self, parent) self.panel = ArtistPanel(self, player, artists_list) self.album_panel = Panel(self, "Choose an album to listen") self.song_panel = SongPanel(self, player) self.AppendWindow(self.panel) self.AppendWindow(self.album_panel) self.AppendWindow(self.song_panel) self.SetSashPosition(0, 200) self.SetSashPosition(1, 200) self.SetSashPosition(2, 200)
def __init__(self, parent): MultiSplitterWindow.__init__(self, parent) self.SetOrientation(wx.VERTICAL) self.p1 = TestPanel(self, "aaaaaaaaa") btn = wx.Button(self.p1, label='btn', pos=(300, -1)) self.Bind(wx.EVT_BUTTON, self.OnClick, btn) self.p2 = TestPanel(self, "bbbbbbbbb") self.p3 = TestPanel(self, "ccccccccc") self.p4 = TestPanel(self, "ddddddddd") # p1.Hide() # p2.Hide() # p3.Hide() self.AppendWindow(self.p1, parent.GetSize()[1] / 4) self.AppendWindow(self.p2, parent.GetSize()[1] / 4) self.AppendWindow(self.p3, parent.GetSize()[1] / 2)
def __init__(self, parent, ID, name): MultiSplitterWindow.__init__(self, parent, ID, style = wx.SP_LIVE_UPDATE, name = name)
def __init__(self, place, orientation, **kwds): self.orientation = orientation MultiSplitterWindow.__init__(self, place[0], style=wx.SP_LIVE_UPDATE) Widget.__init__(self, place, **kwds) Container.__init__(self) self.SetOrientation({'horizontal':wx.HORIZONTAL, 'vertical':wx.VERTICAL}[orientation])