[wxPython-users] listCtrl.SetColumnWidth(0,wx.LISTAUTOSIZE) does not size.

Robin Dunn robin at alldunn.com
Tue May 8 17:17:40 PDT 2007


F.A. Pinkse wrote:
> Hi All.
> 
> I have a lisrCtrl on a NoteBook page inside a sizer.
> When I have inserted the items:
>     listCtrl.InsertStringItem(0,'item to display')
>     listCtrl.SetStringItem(0,1,'2nd Column Item')
> 
>  I do a
>        listCtrl.SetColumnWidth(0,wx.LIST_AUTOSIZE)
> 
> but the size of the column does not change to the width of the item I 
> did put in.
> 

Please make a small sample app that shows the problem. 
http://wiki.wxpython.org/MakingSampleApps


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





More information about the wxpython-users mailing list