Is there a way to stop all event processing during execution of a function?
Here's what's going on:
a) creating panels based on a config file
b) loading values from the config file into respective controls
Now, almost all my textctrl fields have wx.EVT_TXT set, so when the config loader goes widget.SetValue() it triggers the event. I need to stop this from happening.
I've tried using wx.EVT_CHAR, wx.EVT_KEY_UP, and wx.EVT_KEY_DOWN but then what I type doesn't get applied to the control!
I started writing a recursive function that would disable these events but then realized I would have no way of re-applying them.
I played around with SetExtraStyle(wx.WS_EX_BLOCK_EVENTS) but the windows and functions the controls the events are coming from are (generally) at the leaves of the hierarchy, while the loading function is in the trunk.
At least I think that's why it's not working (event handing is confusing)

Any ideas?
TIA