Hi,
I'm using a wxWizard control. I know about the on EVT_WIZARD_PAGE_CHANGED
and the EVT_WIZARD_PAGE_CHANGING
events but could anyone please tell me how to trigger an event when a particular wizard page loads?
Thanks.
Hi,
I'm using a wxWizard control. I know about the on EVT_WIZARD_PAGE_CHANGED
and the EVT_WIZARD_PAGE_CHANGING
events but could anyone please tell me how to trigger an event when a particular wizard page loads?
Thanks.
from the Wxwizard.py example included with wx distribution
def OnWizPageChanged(self, evt):
if evt.GetDirection():
dir = "forward"
else:
dir = "backward"
page = evt.GetPage()
self.log.write("OnWizPageChanged: %s, %s\n" % (dir, page.__class__))
This could be modified
def OnWizPageChanged(self, evt):
page = evt.GetPage()
if (isinstance(page,MyParticularClass):
# do something, generate event, whatever
pass