By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,404 Members | 1,074 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,404 IT Pros & Developers. It's quick & easy.

Simple sizer question

P: n/a
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)

Jul 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.