wxCheckListBox

Hi,
I've been playing with the CheckListBox control and have noticed that,
even in the demos, the first time a selection is made it generates
two command events. Subsequent selections only generate a single event.
This isn't a problem if the event function doesn't take long to execute,
but if the selection is meant to cause the rendering of a large image for
example, the double execution is kind of annoying. Is there some way to
stop the double event?

wxpython 2.4.1.2
wxgtk 1.4.1-r1
python 2.3.3
all on an up-to-date gentoo distro

Thanks,
ross

Hi,
I've been playing with the CheckListBox control and have noticed that,
even in the demos, the first time a selection is made it generates
two command events. Subsequent selections only generate a single event.
This isn't a problem if the event function doesn't take long to execute,
but if the selection is meant to cause the rendering of a large image for
example, the double execution is kind of annoying. Is there some way to
stop the double event?

In this specific case, remember what image you're currently
displaying. If the event would result in displaying the same
image, do nothing.

- Sam

ยทยทยท

At 2004-05-26 12:47 PM -0500, you wrote:

wxpython 2.4.1.2
wxgtk 1.4.1-r1
python 2.3.3
all on an up-to-date gentoo distro

Thanks,
ross

__________________________________________________________
Spinward Stars, LLC Samuel Reynolds
Software Consulting and Development 303-805-1446
http://SpinwardStars.com/ sam@SpinwardStars.com