]>
Commit | Line | Data |
---|---|---|
8fa876ca RD |
1 | # 11/20/2003 - Jeff Grimmett (grimmtooth@softhome.net) |
2 | # | |
3 | # o Updated for wx namespace | |
4 | # | |
cf694132 | 5 | |
8fa876ca | 6 | import wx |
cf694132 RD |
7 | |
8 | #--------------------------------------------------------------------------- | |
9 | ||
10 | def runTest(frame, nb, log): | |
8fa876ca RD |
11 | dlg = wx.MessageDialog(frame, 'Hello from Python and wxPython!', |
12 | 'A Message Box', wx.OK | wx.ICON_INFORMATION) | |
26197023 | 13 | #wxYES_NO | wxNO_DEFAULT | wxCANCEL | wxICON_INFORMATION) |
cf694132 RD |
14 | dlg.ShowModal() |
15 | dlg.Destroy() | |
16 | ||
17 | #--------------------------------------------------------------------------- | |
18 | ||
19 | ||
20 | ||
cf694132 | 21 | overview = """\ |
8fa876ca RD |
22 | This class represents a dialog that shows a single or multi-line message, with a |
23 | choice of OK, Yes, No and Cancel buttons. | |
cf694132 | 24 | |
8fa876ca RD |
25 | Additionally, various style flags can determine whether an icon is displayed, |
26 | and, if so, what kind. | |
cf694132 | 27 | |
8fa876ca RD |
28 | The dialog can be modal or not; of modal, the user's response is in the return |
29 | code of ShowModal(). If not, the response can be taken from GetReturnCode() (inherited | |
30 | from the wxDialog super class). If not modal and the return code is required, it | |
31 | must be retrieved before the dialog is destroyed. | |
cf694132 | 32 | |
8fa876ca | 33 | """ |
cf694132 | 34 | |
cf694132 | 35 | |
1fded56b RD |
36 | if __name__ == '__main__': |
37 | import sys,os | |
38 | import run | |
39 | run.main(['', os.path.basename(sys.argv[0])]) |