2 from wxPython
.wx
import *
4 #---------------------------------------------------------------------------
6 def runTest(frame
, nb
, log
):
7 dlg
= wxMessageDialog(frame
, 'Hello from Python and wxPython!',
8 'A Message Box', wxOK | wxICON_INFORMATION
)
9 #wxYES_NO | wxNO_DEFAULT | wxCANCEL | wxICON_INFORMATION)
13 #---------------------------------------------------------------------------
29 ----------------------------------
31 wxMessageDialog(wxWindow* parent, const wxString& message, const wxString& caption = "Message box", long style = wxOK | wxCANCEL | wxCENTRE, const wxPoint& pos = wxDefaultPosition)
33 Constructor. Use wxMessageDialog::ShowModal to show the dialog.
38 parent = Parent window.
40 message = Message to show on the dialog.
42 caption = The dialog caption.
44 style = A dialog style (bitlist) containing flags chosen from the following:
46 wxOK Show an OK button.
48 wxCANCEL Show a Cancel button.
50 wxYES_NO Show Yes and No buttons.
52 wxCENTRE Centre the message. Not Windows.
54 wxICON_EXCLAMATION Shows an exclamation mark icon. Windows only.
56 wxICON_HAND Shows a hand icon. Windows only.
58 wxICON_QUESTION Shows a question mark icon. Windows only.
60 wxICON_INFORMATION Shows an information (i) icon. Windows only.
62 pos = Dialog position.