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
)
12 #---------------------------------------------------------------------------
28 ----------------------------------
30 wxMessageDialog(wxWindow* parent, const wxString& message, const wxString& caption = "Message box", long style = wxOK | wxCANCEL | wxCENTRE, const wxPoint& pos = wxDefaultPosition)
32 Constructor. Use wxMessageDialog::ShowModal to show the dialog.
37 parent = Parent window.
39 message = Message to show on the dialog.
41 caption = The dialog caption.
43 style = A dialog style (bitlist) containing flags chosen from the following:
45 wxOK Show an OK button.
47 wxCANCEL Show a Cancel button.
49 wxYES_NO Show Yes and No buttons.
51 wxCENTRE Centre the message. Not Windows.
53 wxICON_EXCLAMATION Shows an exclamation mark icon. Windows only.
55 wxICON_HAND Shows a hand icon. Windows only.
57 wxICON_QUESTION Shows a question mark icon. Windows only.
59 wxICON_INFORMATION Shows an information (i) icon. Windows only.
61 pos = Dialog position.