Files
Phoenix/docs/sphinx/rest_substitutions/snippets/python/converted/wx.MessageDialog.SetYesNoLabels.2.py
2016-05-18 16:38:18 -07:00

7 lines
331 B
Python

dlg = wx.MessageDialog(parent, message, caption)
if dlg.SetYesNoLabels("&Quit", "&Don't quit"):
dlg.SetMessage("What do you want to do?")
else: # buttons have standard "Yes"/"No" values, so rephrase the question
dlg.SetMessage("Do you really want to quit?")