]> git.saurik.com Git - wxWidgets.git/blame - wxPython/demo/MessageDialog.py
Don't use deprecated wx.MaskColour
[wxWidgets.git] / wxPython / demo / MessageDialog.py
CommitLineData
cf694132 1
8fa876ca 2import wx
cf694132
RD
3
4#---------------------------------------------------------------------------
5
6def runTest(frame, nb, log):
8fa876ca 7 dlg = wx.MessageDialog(frame, 'Hello from Python and wxPython!',
d7403ad2
RD
8 'A Message Box',
9 wx.OK | wx.ICON_INFORMATION)
10 #wx.YES_NO | wx.NO_DEFAULT | wx.CANCEL | wx.ICON_INFORMATION)
cf694132
RD
11 dlg.ShowModal()
12 dlg.Destroy()
13
14#---------------------------------------------------------------------------
15
16
17
cf694132 18overview = """\
d7403ad2
RD
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.
cf694132 27
8fa876ca 28"""
cf694132 29
cf694132 30
1fded56b
RD
31if __name__ == '__main__':
32 import sys,os
33 import run
8eca4fef 34 run.main(['', os.path.basename(sys.argv[0])] + sys.argv[1:])