Thanks for the advice Mike
is the m/v approach using a wxScrolledWindow? Is there a good
example of this somewhere that is using the OnDisplay and
OnScroll events? The demo/docs don't seem to help out here.
thanks
matt
Model:View Approach:
create X widgets where X is the number of widgets on a single screen
OnDisplay: update each widget with the data from
fulllist[topItem:bottomItem]
OnScroll: calculate shown area, OnDisplay( start, stop)
OnTab: ditto
Grid Approach:
Use a wxGrid, it won't look at all the same, but would likely handle a
huge data set with very little work.
I personally would use the first approach. You just create a set of the
widgets with a scroll-bar control next to them, set the displayed number
/ total number as the height of the slider, then head off to the races.
HTH,
Mike
Harrison, Matthew wrote:
···
-----Original Message-----
From: Mike C. Fletcher [mailto:mcfletch@rogers.com
Hi All-
I'm working on an application to classify a bunch of words.
Each word is represented by a widget that consists of 7 buttons(to change
word attributes) and a text control (to edit the word).
The application needs to process many terms (~20,000).
Currently each control in the word widget is layed out by a box sizer.
Is there a more efficient way to do this? The widget will not have to be
resized. Will a grid sizer be any more efficient? Any other ideas?Also I want to display thes 20,000 widgets in a scrolling panel.
Currently it is a wxScrolledWindow with a boxSizer to hold to widgets.
Again, I will probably not be resizing anything, but performance is very
slow with only 500 widgets (pIII 800Mhz, 512Megs).
What is the best way allow scrolling through many widgets? Right
now, it isn't responsive enough to be useful.Any hints or suggestions on how to improve the performance would be
great.thanks
matt
_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwindows.org
http://lists.wxwindows.org/mailman/listinfo/wxpython-users
--
_______________________________________
Mike C. Fletcher
http://members.rogers.com/mcfletch/
_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwindows.org
http://lists.wxwindows.org/mailman/listinfo/wxpython-users