Simple sizer question

S

skol

I have a SplitterWindow and two panels p1 and p2 in it.
I can put GenericDirCtrl into the left panel (p1),
however it (DirCtrl) stays small. I'd like to stretch it in the whole
of p1. The following code doesn't work, please help.

dir3 = wx.GenericDirCtrl(p1, -1, size=(-1,-1), style=... etc)
p1.sizer = wx.BoxSizer(wx.VERTICAL)
p1.sizer.Add(dir3, 1, wx.EXPAND)
p1.SetAutoLayout(True)
p1.SetSizer(p1.sizer)
p1.sizer.Fit(p1)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,019
Latest member
RoxannaSta

Latest Threads

Top