[wxPython-users] wx.TextCtrl question
Robin Dunn
robin at alldunn.com
Fri Sep 1 15:56:23 PDT 2006
Hugues JEAN-BAPTISTE wrote:
> Hi all,
>
> Is it possible (and how) to modify the width of a TextCtrl in a sizer ?
> I have tried :
> ...
> t = wx.TextCtrl(self.panel, -1, 'AAAA')
> ...
> t.SetSize(wx.Size(20, -1))
> ...
> This doesn't work !...
Use SetMinSize. This is what the sizers look at (in addition to the
"best size" if the control class has one) when calculating how much
space to give to an item.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wxpython-users
mailing list