1999-04-29 23:29:54 -04:00
|
|
|
|
2003-12-08 20:23:28 -05:00
|
|
|
import wx
|
1999-04-29 23:29:54 -04:00
|
|
|
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
def runTest(frame, nb, log):
|
2003-12-08 20:23:28 -05:00
|
|
|
dlg = wx.MessageDialog(frame, 'Hello from Python and wxPython!',
|
|
|
|
'A Message Box', wx.OK | wx.ICON_INFORMATION)
|
1999-09-18 14:21:02 -04:00
|
|
|
#wxYES_NO | wxNO_DEFAULT | wxCANCEL | wxICON_INFORMATION)
|
1999-04-29 23:29:54 -04:00
|
|
|
dlg.ShowModal()
|
|
|
|
dlg.Destroy()
|
|
|
|
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
overview = """\
|
2003-12-08 20:23:28 -05:00
|
|
|
This class represents a dialog that shows a single or multi-line message, with a
|
|
|
|
choice of OK, Yes, No and Cancel buttons.
|
1999-04-29 23:29:54 -04:00
|
|
|
|
2003-12-08 20:23:28 -05:00
|
|
|
Additionally, various style flags can determine whether an icon is displayed,
|
|
|
|
and, if so, what kind.
|
1999-04-29 23:29:54 -04:00
|
|
|
|
2003-12-08 20:23:28 -05:00
|
|
|
The dialog can be modal or not; of modal, the user's response is in the return
|
|
|
|
code of ShowModal(). If not, the response can be taken from GetReturnCode() (inherited
|
2004-01-12 22:17:17 -05:00
|
|
|
from the wx.Dialog). If not modal and the return code is required, it
|
2003-12-08 20:23:28 -05:00
|
|
|
must be retrieved before the dialog is destroyed.
|
1999-04-29 23:29:54 -04:00
|
|
|
|
2003-12-08 20:23:28 -05:00
|
|
|
"""
|
1999-04-29 23:29:54 -04:00
|
|
|
|
|
|
|
|
2003-07-02 19:13:10 -04:00
|
|
|
if __name__ == '__main__':
|
|
|
|
import sys,os
|
|
|
|
import run
|
|
|
|
run.main(['', os.path.basename(sys.argv[0])])
|