[wxPython-users] ListCtrl sorting and MVP implementation

Robin Dunn robin at alldunn.com
Thu Dec 28 10:51:29 PST 2006


Basil Shubin wrote:

> As I dont know the 'right' way to accomplish this task, I ask for help. 
> Do you have any suggestion? I am totaly confused... Should I sort 
> self.models according ListCtrl state and how to make so? Or I need 
> somehow restore ListCtrl sort order after each view update?

I would just make the sort order part of the model, or perhaps a 
separate application configuration model, and then treat it similarly to 
other data in the app.

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





More information about the wxpython-users mailing list