Commit | Line | Data |
---|---|---|
cf694132 RD |
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) | |
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 | ||
27 | overview = """\ | |
28 | wxMessageDialog() | |
29 | ---------------------------------- | |
30 | ||
31 | wxMessageDialog(wxWindow* parent, const wxString& message, const wxString& caption = "Message box", long style = wxOK | wxCANCEL | wxCENTRE, const wxPoint& pos = wxDefaultPosition) | |
32 | ||
33 | Constructor. Use wxMessageDialog::ShowModal to show the dialog. | |
34 | ||
35 | Parameters | |
36 | ------------------- | |
37 | ||
38 | parent = Parent window. | |
39 | ||
40 | message = Message to show on the dialog. | |
41 | ||
42 | caption = The dialog caption. | |
43 | ||
44 | style = A dialog style (bitlist) containing flags chosen from the following: | |
45 | ||
46 | wxOK Show an OK button. | |
47 | ||
48 | wxCANCEL Show a Cancel button. | |
49 | ||
50 | wxYES_NO Show Yes and No buttons. | |
51 | ||
52 | wxCENTRE Centre the message. Not Windows. | |
53 | ||
54 | wxICON_EXCLAMATION Shows an exclamation mark icon. Windows only. | |
55 | ||
56 | wxICON_HAND Shows a hand icon. Windows only. | |
57 | ||
58 | wxICON_QUESTION Shows a question mark icon. Windows only. | |
59 | ||
60 | wxICON_INFORMATION Shows an information (i) icon. Windows only. | |
61 | ||
62 | pos = Dialog position. | |
63 | """ |