ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> wxPython-users
wxPython-users
Re: [wxPython-users] Panel Widgets always crowd together on the up-left side of the frame
by Ed Leafe other posts by this author
Dec 3 2004 2:46PM messages near this date
[wxPython-users] Panel Widgets always crowd together on the up-left side of the frame | [wxPython-users] Re: (Newbie)Wich Editor?
On Dec 3, 2004, at 9:31 AM, $B9> J8(B wrote:

>      No matter which Sizer I use, and what kind of layout format are 
>  adopted, all the widgets always crowd together on the up-left side of 
>  the frame, and left much spaces unused on the rest of the frame .

	First, you need to tell the sizer to expand the textbox to fill empty 
space. Then, you have to tell the GridBagSizer which columns are 
"growable". Change your example so that the section for the textbox 
looks like:

		self.TxtCtl = wx.TextCtrl(self.Panel,-1)
		self.PanelSizer.Add(self.TxtCtl,(2,0),(2,2), wx.EXPAND)
		self.PanelSizer.SetGrowableCol(0)	# left column will grow
		self.Panel.SetSizer(self.PanelSizer)


      ___/
     /
    __/
   /
  ____/
  Ed Leafe
  http://leafe.com/
  http://dabodev.com/


---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@[...].org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
Thread:
=?GB2312?B?va3OxA==?=
Ed Leafe

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved