How to download Autowidth mixin for listctrl

Hi,
I can't seem to locate an "autowidth mixin" download for the listctrl
anywhere.
Where can I find it?
-Rick

Under Linux at least, it's in the python lib tree, under site-packages/wxPython/lib/mixins/ in listctrl.py.

ยทยทยท

On Sat, 14 Jun 2003 01:19:17 -0400 Rick King <rickbking@comcast.net> wrote:

Hi,
I can't seem to locate an "autowidth mixin" download for the listctrl
anywhere.
Where can I find it?
-Rick

Hi Rick,

Under Linux at least, it's in the python lib tree, under site-packages/wxPython/lib/mixins/ in listctrl.py.

Ditto for Windows. All you need to do is import it separately into your wxPython program, like this:

   from wxPython import wx
   from wxPython.lib.mixins.listctrl import wxListCtrlAutoWidthMixin

and then you can include wxListCtrlAutoWidthMixin in your program. There's nothing to download at all, as it's included in the standard wxPython distribution.

By the way, has anyone else had trouble using this mixin with wxPython 2.3.3pre6 or later under Windows? The mixin has been misbehaving for me under Win2K...for some reason, the column headings become much higher than necessary, and there's a big gap between the top of the list control and the first row of data. It appears that this problem is due to a weird event interaction -- the only way I could get it working was to create my own version of the wxListCtrlAutoWidthMixin and make some changes to the underlying code. If anyone else has had similar problems, I'll be happy to distribute my updated version...

Cheers,

  - Erik.

I'll take it Erik, thanks.

BTW, you should probably repost the part of your mail related to the mixin
problem. I wouldn't have seen it if I hadn't been for my interest in the
first part.
-Rick