[wxPython-users] ExpandoTextCtrl & EVT_LAYOUT_NEEDED

Robin Dunn robin at alldunn.com
Sat Sep 22 13:00:36 PDT 2007


Larry Bates wrote:
> I'm having problems getting this working correctly.  When 
> ExpandoTextCtrl increases its vertical height (as it should) it is not 
> resizing/reloacting the two listctrls that are below it.  I've tried
> 
> def OnRefit(self, evt):
>     self.Fit()
> 
> 
> def OnRefit(self, evt):
>     self.Fit()
>     self.Layout()
> 
> def OnRefit(self, evt):
>     self.Layout()
>     self.Fit()

What is self?  What is the relationship of self to the ExpandoTextCtrl? 
  What is the structure of the sizers?  (A small runnable sample would 
have answered all these questions and more...)

> 
> What is odd is that if I just grab the lower right corner of the window 
> and resize it even a little, everything works like a charm.  

This is a sure sign that a Layout will take care of the problem, but the 
how and the where will depend on the answers to the above questions 
(and/or a runnable sample.)

-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wxpython-users mailing list