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