]>
Commit | Line | Data |
---|---|---|
be05b434 RD |
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) |