]>
Commit | Line | Data |
---|---|---|
cf694132 RD |
1 | |
2 | from wxPython.wx import * | |
3 | ||
4 | #--------------------------------------------------------------------------- | |
5 | ||
6 | def runTest(frame, nb, log): | |
7 | dlg = wxMessageDialog(frame, 'Hello from Python and wxPython!', | |
8 | 'A Message Box', wxOK | wxICON_INFORMATION) | |
26197023 | 9 | #wxYES_NO | wxNO_DEFAULT | wxCANCEL | wxICON_INFORMATION) |
cf694132 RD |
10 | dlg.ShowModal() |
11 | dlg.Destroy() | |
12 | ||
13 | #--------------------------------------------------------------------------- | |
14 | ||
15 | ||
16 | ||
17 | ||
18 | ||
19 | ||
20 | ||
21 | ||
22 | ||
23 | ||
24 | ||
25 | ||
26 | ||
27 | overview = """\ | |
1fded56b RD |
28 | Show a message to the user in a dialog |
29 | """ | |
cf694132 | 30 | |
cf694132 | 31 | |
cf694132 | 32 | |
cf694132 | 33 | |
cf694132 | 34 | |
1fded56b RD |
35 | if __name__ == '__main__': |
36 | import sys,os | |
37 | import run | |
38 | run.main(['', os.path.basename(sys.argv[0])]) |