Two events for each FileBrowseButton change.

I think that I'm having some issues with FileBrowseButton. I'm getting
the change event twice i.e. my callback is being called twice for each
change and the wxCommandEvents seem to be identical. (This happens in
the demo also.) Is this correct? Am I missing something? I've searched
the archive and haven't found anything so I suspect that I'm overlooking
something obvious.

My setup is
  Win XP SP 1
  wxPython 2.4.0.7
  Python 2.2.3

Thanks

KJO

perhaps you have a line event.Skip() at the end of the event handler?

Regards,
Rob

Owens, Kieran wrote:

I think that I'm having some issues with FileBrowseButton. I'm getting
the change event twice i.e. my callback is being called twice for each
change and the wxCommandEvents seem to be identical. (This happens in
the demo also.) Is this correct? Am I missing something? I've searched
the archive and haven't found anything so I suspect that I'm overlooking
something obvious.

There are some situations where some events can be doubled, usually due to differences in different versions of the native controls and wxWindows opting to send and event itself rather than risk that an event may not be sent at all.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!