ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> wxpython-users
wxpython-users
[wxpython-users] Re: listctrl columnsortermixin resetting # of columns
by Paul Hartley other posts by this author
Jul 8 2008 2:59PM messages near this date
Re: [wxpython-users] listctrl columnsortermixin resetting # of columns | [wxpython-users] Draw an Arc
nevermind, I think I figured it out..  had to add in the self that refers to
the panel containing the listctrl

listmix.ColumnSorterMixin.SetColumnCount(self, new_cols)


paul

On Tue, Jul 8, 2008 at 1:30 PM, Paul Hartley <phartley@[...].com>  wrote:

> 
>  I have a listctrl with a columnsorter mixin - it's working fine.  Sometimes
>  I have to add more columns to this listctrl, which means I also need to be
>  able to change the number of columns recognized by the columnsorter mixin.
>  There's a method called SetColumnCount for this mixin, but I can't figure
>  out how to access it because if I initialize the mixin, it returns None, so
>  I don't have an instance of it.  I have tried re-doing the init with a new
>  number of columns, but it won't sort properly anymore.  Is there some way I
>  can access SetColumnCount?
> 
>  initialization code (it returns None):
>  self.csm = listmix.ColumnSorterMixin.__init__(self, col_num)
> 
>  what I've tried:
> 
>  listmix.ColumnSorterMixin.SetColumnCount(new_cols) - says I need to provide
>  the mixin instance (duh)
> 
>  self.csm.SetColumnCount(new_cols) - obviously won't work as self.csm is
>  None
> 
>  paul
> 
Thread:
Paul Hartley
Robin Dunn
Paul Hartley

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved