]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/demo/wxMessageDialog.py
Final tweaks for 2.1b1
[wxWidgets.git] / utils / wxPython / demo / wxMessageDialog.py
1
2 from wxPython.wx import *
3
4 #---------------------------------------------------------------------------
5
6 def 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
26 overview = """\
27 wxMessageDialog()
28 ----------------------------------
29
30 wxMessageDialog(wxWindow* parent, const wxString& message, const wxString& caption = "Message box", long style = wxOK | wxCANCEL | wxCENTRE, const wxPoint& pos = wxDefaultPosition)
31
32 Constructor. Use wxMessageDialog::ShowModal to show the dialog.
33
34 Parameters
35 -------------------
36
37 parent = Parent window.
38
39 message = Message to show on the dialog.
40
41 caption = The dialog caption.
42
43 style = A dialog style (bitlist) containing flags chosen from the following:
44
45 wxOK Show an OK button.
46
47 wxCANCEL Show a Cancel button.
48
49 wxYES_NO Show Yes and No buttons.
50
51 wxCENTRE Centre the message. Not Windows.
52
53 wxICON_EXCLAMATION Shows an exclamation mark icon. Windows only.
54
55 wxICON_HAND Shows a hand icon. Windows only.
56
57 wxICON_QUESTION Shows a question mark icon. Windows only.
58
59 wxICON_INFORMATION Shows an information (i) icon. Windows only.
60
61 pos = Dialog position.
62 """