]> git.saurik.com Git - wxWidgets.git/blame - wxPython/demo/wxMessageDialog.py
Tidied space and tabs in wxMac files
[wxWidgets.git] / wxPython / demo / wxMessageDialog.py
CommitLineData
cf694132
RD
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)
26197023 9 #wxYES_NO | wxNO_DEFAULT | wxCANCEL | wxICON_INFORMATION)
cf694132
RD
10 dlg.ShowModal()
11 dlg.Destroy()
12
13#---------------------------------------------------------------------------
14
15
16
17
18
19
20
21
22
23
24
25
26
27overview = """\
28wxMessageDialog()
29----------------------------------
30
31wxMessageDialog(wxWindow* parent, const wxString& message, const wxString& caption = "Message box", long style = wxOK | wxCANCEL | wxCENTRE, const wxPoint& pos = wxDefaultPosition)
32
33Constructor. Use wxMessageDialog::ShowModal to show the dialog.
34
35Parameters
36-------------------
37
38parent = Parent window.
39
40message = Message to show on the dialog.
41
42caption = The dialog caption.
43
44style = A dialog style (bitlist) containing flags chosen from the following:
45
46wxOK Show an OK button.
47
48wxCANCEL Show a Cancel button.
49
50wxYES_NO Show Yes and No buttons.
51
52wxCENTRE Centre the message. Not Windows.
53
54wxICON_EXCLAMATION Shows an exclamation mark icon. Windows only.
55
56wxICON_HAND Shows a hand icon. Windows only.
57
58wxICON_QUESTION Shows a question mark icon. Windows only.
59
60wxICON_INFORMATION Shows an information (i) icon. Windows only.
61
62pos = Dialog position.
63"""