I have a really strange problem I can't figure out, i.e. when dlg.ShowModal is called on a "child" dialog then all visible listctrls refresh.
Simplified structure of the app is:
sizedFrame
- aui
--- aui.nb
---- sizedpanel
------ listctrl 1
----- sizedpanel
------- listctrl 2
------- button to load dialog
Both listctrl's will repaint all the items (top down) when the dlg.ShowModal is called by the button handler and they do it again when the dialog is closed.
I put logging.debug all over the place to narrow it down, tried using freeze/thaw to hide the refresh but no success. If I freeze listctrl 1 just before dlg.ShowModal then the listctrl disappears when dlg.ShowModal is called and shows up when the thaw is called after ShowModal returns.
The listctrl's may get updated via pubsub calls from the dlg but in my tests I just cancel the dialog which means listctrl does not need to be updated and the relevant methods do NOT show in the logging debug output.
Also suspected my use of InfoBar, but running a test without it didn't not change anything, then my other suspect is the use of EVT_UPDATE_UI to enable/disable buttons, toolbar tools and sub-panels. Commenting the Bind for it didn't make any difference either.
Anyone has some tips for what else I could possibly have messed up to cause this?
Werner
Python 2.7, wxPython 2.9.3.2 on Win7