]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/samples/wxPIA_book/Chapter-09/message_box.py
   3 if __name__ 
== "__main__": 
   5     dlg 
= wx
.MessageDialog(None, "Is this explanation OK?", 
   7                           wx
.YES_NO | wx
.ICON_QUESTION
) 
   8     retCode 
= dlg
.ShowModal() 
   9     if (retCode 
== wx
.ID_YES
): 
  15     retCode 
= wx
.MessageBox("Is this way easier?", "Via Function", 
  16             wx
.YES_NO | wx
.ICON_QUESTION
)