Python
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   Web Development Archives Mailing Lists Python

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Web Development Archives Sponsor:
  #1  
Old March 14th, 2008, 08:20 PM
andrei kulakov
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
listctrl.ColumnSorterMixin sorting problem

Hello,

I'm running into a problem sorting listctrl.ColumnSorterMixin. initial
items of list, it works perfectly. When listctrl is cleared and reloaded
with new items, it only sorts in ascending order. It seems that in fact on
click on column title, it first sorts in descending order then immediately
in ascending, so that what you see is only the results of the last sorting.

I searched for answers in google and found a few questions that mention the
same exact problem, but the answer that was given in one case, to call
SortListItems after reloading items in listctrl, does not help. Here's what
I'm doing:

class MyFrame(wx.Frame, MyColSortMix):

[]
(self, numCols)
(self)

I tried several different ways of doing this but nothing seems to help

Am I doing it the right way here?:

index = self.lc.InsertStringItem(sys.maxint, show_title)

self.lc.SetItemData(index, index)

where self.lc is my listctrl

thanks, -ak

Reply With Quote
Reply

Viewing: Web Development Archives Mailing Lists Python > listctrl.ColumnSorterMixin sorting problem


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT