Re: [PyKDE] Custom sorting function for the QListView widget

2004-07-04 Thread Simon Edwards
On Sunday 04 July 2004 14:35, Fernando Jorge Silveira Filho wrote: > About the C++ extension issue, how do I go about implementing an > extension? Is there some sort of tutorial on this? I have to admit that > I am still sort a Python newbie. I am willing to try it anyway, since I > still think

Re: [PyKDE] Custom sorting function for the QListView widget

2004-07-04 Thread Gordon Tyler
Fernando Jorge Silveira Filho wrote: About the C++ extension issue, how do I go about implementing an extension? Is there some sort of tutorial on this? I have to admit that I am still sort a Python newbie. I am willing to try it anyway, since I still think that if I can solve this on Python the

Re: [PyKDE] Custom sorting function for the QListView widget

2004-07-04 Thread Fernando Jorge Silveira Filho
Hi Detlev, Before you go through all the hassles implementing a C++ extension you could try to preformat your numerical data (e.g. left padding with blanks) when you create the QListViewItems and later on rely on the native sort functions. Exchange the lines for i in range(1000): item = MyQL

Re: [PyKDE] Custom sorting function for the QListView widget

2004-07-04 Thread Detlev Offenbach
Hi, > Hi, > > I've tried your suggestion and it does indeed seem to show an increase > in performance. I've measured it as being around 10% of improvement > for a large dataset (1 records on the listview). My datasets will > probabibly be around 1000 records, and at that level the difference >