]> git.saurik.com Git - wxWidgets.git/blob - wxPython/demo/wxMessageDialog.py
wxPython Merge #2 of 2.4 branch --> HEAD (branch tag: wxPy_2_4_merge_2)
[wxWidgets.git] / wxPython / demo / wxMessageDialog.py
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)
9 #wxYES_NO | wxNO_DEFAULT | wxCANCEL | wxICON_INFORMATION)
10 dlg.ShowModal()
11 dlg.Destroy()
12
13 #---------------------------------------------------------------------------
14
15
16
17
18
19
20
21
22
23
24
25
26
27 overview = """\
28 Show a message to the user in a dialog
29 """
30
31
32
33
34
35 if __name__ == '__main__':
36 import sys,os
37 import run
38 run.main(['', os.path.basename(sys.argv[0])])