]> git.saurik.com Git - wxWidgets.git/blob - wxPython/demo/MessageDialog.py
added notebook test
[wxWidgets.git] / wxPython / demo / MessageDialog.py
1
2 import wx
3
4 #---------------------------------------------------------------------------
5
6 def 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
18 overview = """\
19 <html><body>
20 <h2>wx.MessageDialog</h2>
21
22 This class represents a dialog that shows a single or multi-line
23 message, with a choice of OK, Yes, No and Cancel buttons.
24 Additionally, various style flags can determine whether an icon is
25 displayed, and, if so, what kind. The return value of ShowModal
26 indicates which button was pressed.
27
28 """
29
30
31 if __name__ == '__main__':
32 import sys,os
33 import run
34 run.main(['', os.path.basename(sys.argv[0])] + sys.argv[1:])