wx.TreeCtrl and size

Hye,

How can I get my wx.TreeCtrl use all the space of a wx.Window?

Thanks.

[code]
import wx

class MySplit(wx.Frame):
        def __init__(self, parent, title):
            wx.Frame.__init__(self, parent, title=title)
            self.split = wx.SplitterWindow(self)

            panel1 = wx.Window(self.split, style=wx.BORDER_SUNKEN)
            panel1.SetBackgroundColour("yellow")

            panel2 = wx.Window(self.split, style=wx.BORDER_SUNKEN)
            panel2.SetBackgroundColour("grey")

            self.split.SplitVertically(panel1, panel2)
            
            self.tree = wx.TreeCtrl(panel1)
            
            self.root = self.tree.AddRoot("Patient")

if __name__== '__main__':
       app = wx.PySimpleApp()
       frame = MySplit(None, 'un titre')
       frame.Show()
       app.MainLoop()
[/code]

laurent FRANCOIS wrote:

Hye,

How can I get my wx.TreeCtrl use all the space of a wx.Window?

Thanks.
  

I change the wx.Window to wx.Panel.
And I put the wx.TreeCtrl in a wx.BoxSizer
but it does not work either.

Thanks

laurent FRANCOIS wrote:

laurent FRANCOIS wrote:

Hye,

How can I get my wx.TreeCtrl use all the space of a wx.Window?

Thanks.
  

I change the wx.Window to wx.Panel.
And I put the wx.TreeCtrl in a wx.BoxSizer
but it does not work either.

http://wiki.wxpython.org/MakingSampleApps

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!