]>
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!',
8 'A Message Box', wx
.OK | wx
.ICON_INFORMATION
)
9 #wxYES_NO | wxNO_DEFAULT | wxCANCEL | wxICON_INFORMATION)
13 #---------------------------------------------------------------------------
18 This class represents a dialog that shows a single or multi-line message, with a
19 choice of OK, Yes, No and Cancel buttons.
21 Additionally, various style flags can determine whether an icon is displayed,
22 and, if so, what kind.
24 The dialog can be modal or not; of modal, the user's response is in the return
25 code of ShowModal(). If not, the response can be taken from GetReturnCode() (inherited
26 from the wx.Dialog). If not modal and the return code is required, it
27 must be retrieved before the dialog is destroyed.
32 if __name__
== '__main__':
35 run
.main(['', os
.path
.basename(sys
.argv
[0])])