[wxPython-users] MVP, ListCtrl, mixin.Sorter???
Robin Dunn
robin at alldunn.com
Fri Dec 22 12:57:59 PST 2006
Basil Shubin wrote:
> Hi friends,
>
> Currently I rewrite one of my app according MVP design. In a Viewer I
> have ListCtrl+Sorter that should show Model items. Problem is that
> Sorting doesn't working. I am confuse, where I make an error...???
You need to give the unique data value to each item in the listctrl,
(see the docstring for ColumnSorterMixin.) Adding this line to your
WordsListCtrlPanel.set method will take care of it:
self.SetItemData(index, idx)
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wxpython-users
mailing list