]> git.saurik.com Git - wxWidgets.git/blob - wxPython/samples/wxPIA_book/Chapter-09/message_box.py
fix building/running of tex2rtf
[wxWidgets.git] / wxPython / samples / wxPIA_book / Chapter-09 / message_box.py
1 import wx
2
3 if __name__ == "__main__":
4 app = wx.PySimpleApp()
5 dlg = wx.MessageDialog(None, "Is this explanation OK?",
6 'A Message Box',
7 wx.YES_NO | wx.ICON_QUESTION)
8 retCode = dlg.ShowModal()
9 if (retCode == wx.ID_YES):
10 print "yes"
11 else:
12 print "no"
13 dlg.Destroy()
14
15 retCode = wx.MessageBox("Is this way easier?", "Via Function",
16 wx.YES_NO | wx.ICON_QUESTION)