Sizers for controls in Notebook pages

Hi all,

I have a Frame with a SplitterWindow.
self.splitter = wx.SplitterWindow(self)

Then I have two panels and add them to the SplitterWindow:

def _init_left_panel(self):

    # Create the left panel
    leftPanel = wx.Panel(parent=self.splitter, size=wx.Size(300, 300))
    # Create a box sizer that will contain the left panel contents
    leftBox = wx.BoxSizer(wx.VERTICAL)

    # Create our tree and put it into the left panel
    self.tree = wx.gizmos.TreeListCtrl(id=wxID_MAINFRAMEFILES, parent=leftPanel)

leftPanel = self._init_left_panel()
rightPanel = self._init_right_panel()

self.splitter.SplitVertically(leftPanel, rightPanel, 300)

In the two panels, I have BoxSizers.

Inside _init_left_panel:

Please ignore this email, it went out before I was finished, sorry.
There is an updated one.

ยทยทยท

On Monday, July 9, 2012 2:25:53 PM UTC+10, kma_jg wrote:

Hi all,

I have a Frame with a SplitterWindow.
self.splitter = wx.SplitterWindow(self)

Then I have two panels and add them to the SplitterWindow:

def _init_left_panel(self):

    # Create the left panel
    leftPanel = wx.Panel(parent=self.splitter, size=wx.Size(300, 300))
    # Create a box sizer that will contain the left panel contents
    leftBox = wx.BoxSizer(wx.VERTICAL)

    # Create our tree and put it into the left panel
    self.tree = wx.gizmos.TreeListCtrl(id=wxID_MAINFRAMEFILES, parent=leftPanel)

leftPanel = self._init_left_panel()
rightPanel = self._init_right_panel()

self.splitter.SplitVertically(leftPanel, rightPanel, 300)

In the two panels, I have BoxSizers.

Inside _init_left_panel: