[wxPython-users] Re: Notebook doesn't expand it's components ..
Stef Mientki
s.mientki at ru.nl
Sun Oct 14 10:08:09 PDT 2007
thanks Cristian,
that was the solution.
cheers,
Stef
Christian K. wrote:
> Stef Mientki <s.mientki <at> ru.nl> writes:
>
>
>> NB = wx.Notebook ( self, -1,
>> size = ( 600, 400 ),
>> style = wx.BK_LEFT )
>>
>> p1 = wx.Panel ( NB )
>> NB.AddPage ( p1, "Scope" )
>> p2 = wx.Panel ( NB )
>> NB.AddPage ( p2, "Setting" )
>>
>> # *****************************************************************
>> self.Splitter = wx.SplitterWindow ( p1, 11, style = wx.SP_LIVE_UPDATE )
>>
>
>
> you need to put that SplitterWindow in a sizer:
>
> box = wx.BoxSizer(wx.VERTICAL)
> box.Add(self.Splitter, 1, wx.EXPAND)
> p1.SetSizer(box)
>
> Christian
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wxPython-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wxPython-users-help at lists.wxwidgets.org
>
>
>
>
More information about the wxpython-users
mailing list