]> git.saurik.com Git - wxWidgets.git/blame_incremental - wxPython/demo/MessageDialog.py
install activex too
[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', wx.OK | wx.ICON_INFORMATION)
9 #wxYES_NO | wxNO_DEFAULT | wxCANCEL | wxICON_INFORMATION)
10 dlg.ShowModal()
11 dlg.Destroy()
12
13#---------------------------------------------------------------------------
14
15
16
17overview = """\
18This class represents a dialog that shows a single or multi-line message, with a
19choice of OK, Yes, No and Cancel buttons.
20
21Additionally, various style flags can determine whether an icon is displayed,
22and, if so, what kind.
23
24The dialog can be modal or not; of modal, the user's response is in the return
25code of ShowModal(). If not, the response can be taken from GetReturnCode() (inherited
26from the wx.Dialog). If not modal and the return code is required, it
27must be retrieved before the dialog is destroyed.
28
29"""
30
31
32if __name__ == '__main__':
33 import sys,os
34 import run
35 run.main(['', os.path.basename(sys.argv[0])] + sys.argv[1:])