[wxPython-users] ANN: ColumnSizer mixin for ListCtrl

Karsten Hilbert Karsten.Hilbert at gmx.net
Fri Jan 4 04:33:47 PST 2008


Yes please !!

:-)

Thanks,
Karsten


On Thu, Jan 03, 2008 at 05:30:18PM -0800, Rob McMullen wrote:
> Subject: [wxPython-users] ANN: ColumnSizer mixin for ListCtrl
> 
> Here's a mixin for ListCtrl controls in LC_REPORT mode to help set the
> initial size (and resize on list size events) of all columns.  The
> idea is to provide a reasonable default size for all columns without
> specifying everything in fixed pixel widths.  It will attempt to use
> all the constraints in order to show as many columns as possible
> without using a horizontal scroll bar.  ColumnSizer works well with
> the wx.lib.mixins.listctrl mixins.
> 
> Column sizes can have a minimum or maximum value (or can be fixed
> width).  Sizes can be specified in pixels or given as a representative
> string that the method will turn into a pixel width based on the
> current font.  Columns can also be told to be greedy when resizing, or
> can be allowed to be off screen.

-- 
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346




More information about the wxpython-users mailing list