]> git.saurik.com Git - wxWidgets.git/blame_incremental - utils/wxPython/demo/wxMessageDialog.py
wxPython 2.0b9, first phase (win32)
[wxWidgets.git] / utils / wxPython / demo / wxMessageDialog.py
... / ...
CommitLineData
1
2from wxPython.wx import *
3
4#---------------------------------------------------------------------------
5
6def runTest(frame, nb, log):
7 dlg = wxMessageDialog(frame, 'Hello from Python and wxPython!',
8 'A Message Box', wxOK | wxICON_INFORMATION)
9 dlg.ShowModal()
10 dlg.Destroy()
11
12#---------------------------------------------------------------------------
13
14
15
16
17
18
19
20
21
22
23
24
25
26overview = """\
27wxMessageDialog()
28----------------------------------
29
30wxMessageDialog(wxWindow* parent, const wxString& message, const wxString& caption = "Message box", long style = wxOK | wxCANCEL | wxCENTRE, const wxPoint& pos = wxDefaultPosition)
31
32Constructor. Use wxMessageDialog::ShowModal to show the dialog.
33
34Parameters
35-------------------
36
37parent = Parent window.
38
39message = Message to show on the dialog.
40
41caption = The dialog caption.
42
43style = A dialog style (bitlist) containing flags chosen from the following:
44
45wxOK Show an OK button.
46
47wxCANCEL Show a Cancel button.
48
49wxYES_NO Show Yes and No buttons.
50
51wxCENTRE Centre the message. Not Windows.
52
53wxICON_EXCLAMATION Shows an exclamation mark icon. Windows only.
54
55wxICON_HAND Shows a hand icon. Windows only.
56
57wxICON_QUESTION Shows a question mark icon. Windows only.
58
59wxICON_INFORMATION Shows an information (i) icon. Windows only.
60
61pos = Dialog position.
62"""