]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/demo/MessageDialog.py
4 #---------------------------------------------------------------------------
6 def runTest(frame
, nb
, log
):
7 dlg
= wx
.MessageDialog(frame
, 'Hello from Python and wxPython!',
9 wx
.OK | wx
.ICON_INFORMATION
)
10 #wx.YES_NO | wx.NO_DEFAULT | wx.CANCEL | wx.ICON_INFORMATION)
14 #---------------------------------------------------------------------------
20 <h2>wx.MessageDialog</h2>
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.
31 if __name__
== '__main__':
34 run
.main(['', os
.path
.basename(sys
.argv
[0])] + sys
.argv
[1:])