Hi,
A year ago i found a bug in FastObjectListView and no-one from the ObjectListView discussion replayed,
i wonder if ObjectListView is dead.if so are there any good alternatives?
Many thanks!
Yoav.
Hi,
A year ago i found a bug in FastObjectListView and no-one from the ObjectListView discussion replayed,
i wonder if ObjectListView is dead.if so are there any good alternatives?
Many thanks!
Yoav.
yoav glazner wrote:
Hi,
A year ago i found a bug in FastObjectListView and no-one from the ObjectListView discussion replayed,
i wonder if ObjectListView is dead.if so are there any good alternatives?
Where did you post it?
I had pretty quick replies when I had a question. Last post I can see from Philip is in Dec 2009 on the following.
http://sourceforge.net/projects/objectlistview/forums/forum/825500
For alternatives, you should probably look at the listctrl's in the AGW "series" - haven't used them myself yet.
Werner
What exactly are the bugs? I am fairly familiar, I will write a patch
if I can...
I use it quite a bit..Haven't found anything that compares yet...
We will see what we can do with the new DataViewCtrl though once 2.9
hits the shelf.
- michael
On Jan 15, 5:54 am, werner <wbru...@free.fr> wrote:
yoav glazner wrote:
> Hi,> A year ago i found a bug in FastObjectListView and no-one from the
> ObjectListView discussion replayed,
> i wonder if ObjectListView is dead.if so are there any good alternatives?Where did you post it?
I had pretty quick replies when I had a question. Last post I can see
from Philip is in Dec 2009 on the following.ObjectListView / Discussion / Python
For alternatives, you should probably look at the listctrl's in the AGW
"series" - haven't used them myself yet.Werner
What exactly are the bugs? I am fairly familiar, I will write a patch
if I can…
Well the bug is that the sorting is not working when after using SetFilter on a FastObjectListView table.
I use it quite a bit…Haven’t found anything that compares yet…
We will see what we can do with the new DataViewCtrl though once 2.9
hits the shelf.
looking forward for it!
here is an example of the problem:
mport wx
from ObjectListView import FastObjectListView,ColumnDefn
def evenFilter(numbers):
return [num for num in numbers if num % 2 != 0]
a = wx.App(None)
f = wx.Frame(None,-1)
folv = FastObjectListView(f,-1)
folv.AddColumnDefn(ColumnDefn(title=‘pop’,valueGetter=lambda o:o))
folv.SetObjects(range(500))
folv.SetFilter(evenFilter)
folv.RepopulateList()
f.Show()
a.MainLoop()
On Sat, Jan 16, 2010 at 7:00 AM, michael h michaelkenth@gmail.com wrote:
Yoav,
The Problem:
FastOVL keeps two lists of the items, the underlying list from
SetObjects(), and then an 'innerlist' that it actually displays.
This is how it does filtering/groups/etc without disturbing the
underlying data.
However, for sorting it actually sorts the underlying list without
updating the 'innerlist' (not sure why)
a simple fix is to add in ObjectListView.py:
self._BuildInnerList()
after line 2522 (right after self._SortObjects() in
FastObjectListView's _SortItemsNow)
[This will be line 2543 in the latest SVN checkout.]
However I believe it might be of benefit to change the way the sorting
happens so only the view/innerlist is sorted as in this case we are
sorting a list twice as large.
I will look into making these changes and submitting this to the
author (this will be a good prod to polish up some of the other
changes I have made and submit those as well)
If you have any problems making these changes just let me know what
OLV version you're using and i'll send you an acutal patch or a
modified ObjectListView.py
Also in your example, don't call RepopulateList right after you call
SetObjects, you should call SetFilter and then SetObjects (you are
building the list twice):
import wx
from ObjectListView import FastObjectListView,ColumnDefn
def evenFilter(numbers):
return [num for num in numbers if num % 2 != 0]
a = wx.App(None)
f = wx.Frame(None,-1)
folv = FastObjectListView(f,-1)
folv.AddColumnDefn(ColumnDefn(title='pop',valueGetter=lambda o:o))
folv.SetSortColumn(0)
folv.SetFilter(evenFilter)
folv.SetObjects(range(500))
f.Show()
a.MainLoop()
On Jan 16, 1:02 pm, yoav glazner <yoavglaz...@gmail.com> wrote:
On Sat, Jan 16, 2010 at 7:00 AM, michael h <michaelke...@gmail.com> wrote:
> What exactly are the bugs? I am fairly familiar, I will write a patch
> if I can...Well the bug is that the sorting is not working when after using SetFilter
on a FastObjectListView table.> I use it quite a bit..Haven't found anything that compares yet...
> We will see what we can do with the new DataViewCtrl though once 2.9
> hits the shelf.looking forward for it!
here is an example of the problem:
mport wx
from ObjectListView import FastObjectListView,ColumnDefndef evenFilter(numbers):
return [num for num in numbers if num % 2 != 0]a = wx.App(None)
f = wx.Frame(None,-1)
folv = FastObjectListView(f,-1)
folv.AddColumnDefn(ColumnDefn(title='pop',valueGetter=lambda o:o))
folv.SetObjects(range(500))
folv.SetFilter(evenFilter)
folv.RepopulateList()
f.Show()a.MainLoop()
# try sorting the list...
self._BuildInnerList()
after line 2522 (right after self._SortObjects() in
FastObjectListView’s _SortItemsNow)
[This will be line 2543 in the latest SVN checkout.]
I rather not change the source since we are working in a team. (ObjectListView is 3rd party for us)
I will look into making these changes and submitting this to the
author (this will be a good prod to polish up some of the other
changes I have made and submit those as well)
Sounds Great!
Also in your example, don’t call RepopulateList right after you call
SetObjects, you should call SetFilter and then SetObjects (you are
building the list twice):
thats just an example… =) not real code.
Yoav.
yoav glazner wrote:
self._BuildInnerList()
after line 2522 (right after self._SortObjects() in
FastObjectListView's _SortItemsNow)[This will be line 2543 in the latest SVN checkout.]
I rather not change the source since we are working in a team. (ObjectListView is 3rd party for us)
I will look into making these changes and submitting this to the
author (this will be a good prod to polish up some of the other
changes I have made and submit those as well)Sounds Great!
Also in your example, don't call RepopulateList right after you call
SetObjects, you should call SetFilter and then SetObjects (you are
building the list twice):thats just an example... =) not real code.
Yoav.
Just modify the code and include the source inside your program's source, and import that, rather than the installed OLV. Then, everyone has the same version
--
Steven Sproat, BSc
http://www.basicrpg.com/
Hi there,
ObjectListView is not dead -- it's just resting
To be honest, apart from a few small patches (thanks Werner), I
haven't found much more that I need to do with this control. It does
just about everything that is possible with the current wx.ListView.
When we get a control that supports owner drawing, then I can do some
really neat stuff! Until then, I'd almost be tempted to say that it's
finished.
If I missed your post on the discussion, I'm sorry.
Regards,
Phillip
On Jan 15, 10:42 pm, yoav glazner <yoavglaz...@gmail.com> wrote:
Hi,
A year ago i found a bug in FastObjectListView and no-one from the
ObjectListView discussion replayed,
i wonder if ObjectListView is dead.if so are there any good alternatives?Many thanks!
Yoav. [?]
32B.gif
< 1KViewDownload
Hi,
Hi there,
ObjectListView is not dead -- it's just resting
To be honest, apart from a few small patches (thanks Werner), I
haven't found much more that I need to do with this control. It does
just about everything that is possible with the current wx.ListView.When we get a control that supports owner drawing, then I can do some
really neat stuff!
We already have:
wx.lib.agw.ultimatelistctrl
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/
On 27 February 2010 07:20, Grammarian wrote: