]> git.saurik.com Git - wxWidgets.git/blame_incremental - wxPython/demo/wxMessageDialog.py
fix text scrolling in GTK2 (patch 703988)
[wxWidgets.git] / wxPython / demo / wxMessageDialog.py
... / ...
CommitLineData
1
2from wxPython.wx import *
3
4#---------------------------------------------------------------------------
5
6def 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
27overview = """\
28Show a message to the user in a dialog
29"""
30
31
32
33
34
35if __name__ == '__main__':
36 import sys,os
37 import run
38 run.main(['', os.path.basename(sys.argv[0])])