DelayingSizer
Doug Anderson
doug at vitamindinc.com
Fri Sep 7 18:00:50 PDT 2007
Hello,
I've been trying to figure out how to speed up window (AKA Frame)
resizing in a Frame that has approximately 4000 elements. With some
help from friends, I came up with the idea of delaying the resizing
until idle time.
I've created a simple helper sizer called "DelayingSizer" that can be
used generically any time you want to delay resizing until idle
time. In testing, this makes window sizing MUCH more responsive
(it's actually usable now).
I've attached the code for "DelayingSizer", as well as some test code
that I wrote. This code should be considered to be under the python
license.
My hope is:
* If people are interested, someone could add it to the standard
library of sizers.
* If I've done something super stupid in the code (or if there's a
simpler, better way to accomplish the same thing), someone will point
it out.
Hopefully, someone will find this useful. Enjoy!
-Doug
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DelayingSizer.py
Type: text/x-python-script
Size: 11088 bytes
Desc: not available
Url : http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/20070907/ed7abe82/DelayingSizer.bin
More information about the wxpython-users
mailing list