I'm used to this :
for o in self.wizard.GetChildren():
if 'Button' in str(type(o)) and o.GetLabel() == '&Next':
o.Disable()
If you've got something better, I'd like to have it also !
Regards,
jm
Drew, Matt a écrit :
···
Never mind. I wasn't patient enough. Google is again my friend.
------------------------------------------------------------------------
*From:* Drew, Matt [mailto:Matt.Drew@arraybiopharma.com]
*Sent:* Thursday, September 20, 2007 11:32 AM
*To:* wxPython-users@lists.wxwidgets.org
*Subject:* [wxPython-users] Disabling the Next button on a wizard page
I can't figure out how to disable the Next button on a wx.wizard.PyWizardPage. I want to force the user to fill out all the fields on my wizard page before he can go on to the next step. Has anyone done this successfully?