]>
Commit | Line | Data |
---|---|---|
cf694132 | 1 | |
8fa876ca | 2 | import wx |
cf694132 RD |
3 | |
4 | #--------------------------------------------------------------------------- | |
5 | ||
6 | def runTest(frame, nb, log): | |
8fa876ca | 7 | dlg = wx.MessageDialog(frame, 'Hello from Python and wxPython!', |
d7403ad2 RD |
8 | 'A Message Box', |
9 | wx.OK | wx.ICON_INFORMATION) | |
10 | #wx.YES_NO | wx.NO_DEFAULT | wx.CANCEL | wx.ICON_INFORMATION) | |
cf694132 RD |
11 | dlg.ShowModal() |
12 | dlg.Destroy() | |
13 | ||
14 | #--------------------------------------------------------------------------- | |
15 | ||
16 | ||
17 | ||
cf694132 | 18 | overview = """\ |
d7403ad2 RD |
19 | <html><body> |
20 | <h2>wx.MessageDialog</h2> | |
21 | ||
22 | This class represents a dialog that shows a single or multi-line | |
23 | message, with a choice of OK, Yes, No and Cancel buttons. | |
24 | Additionally, various style flags can determine whether an icon is | |
25 | displayed, and, if so, what kind. The return value of ShowModal | |
26 | indicates which button was pressed. | |
cf694132 | 27 | |
8fa876ca | 28 | """ |
cf694132 | 29 | |
cf694132 | 30 | |
1fded56b RD |
31 | if __name__ == '__main__': |
32 | import sys,os | |
33 | import run | |
8eca4fef | 34 | run.main(['', os.path.basename(sys.argv[0])] + sys.argv[1:]) |