]>
Commit | Line | Data |
---|---|---|
cf694132 RD |
1 | |
2 | from wxPython.wx import * | |
3 | ||
4 | #--------------------------------------------------------------------------- | |
5 | ||
6 | def runTest(frame, nb, log): | |
7 | dlg = wxFileDialog(frame, "Choose a file", ".", "", "*.*", wxOPEN) | |
8 | if dlg.ShowModal() == wxID_OK: | |
9 | log.WriteText('You selected: %s\n' % dlg.GetPath()) | |
10 | dlg.Destroy() | |
11 | ||
12 | #--------------------------------------------------------------------------- | |
13 | ||
14 | ||
15 | ||
16 | ||
17 | ||
18 | ||
19 | ||
20 | ||
21 | ||
22 | ||
23 | ||
24 | ||
25 | ||
26 | ||
27 | overview = """\ | |
28 | This class represents the file chooser dialog. | |
29 | ||
30 | wxFileDialog() | |
31 | ---------------------------- | |
32 | ||
33 | wxFileDialog(wxWindow* parent, const wxString& message = "Choose a file", const wxString& defaultDir = "" | |
34 | , const wxString& defaultFile = "", const wxString& wildcard = "*.*", long style = 0, const wxPoint& pos = wxDefaultPosition) | |
35 | ||
36 | Constructor. Use wxFileDialog::ShowModal to show the dialog. | |
37 | ||
38 | Parameters | |
39 | ------------------- | |
40 | ||
41 | parent = Parent window. | |
42 | ||
43 | message = Message to show on the dialog. | |
44 | ||
45 | defaultDir = The default directory, or the empty string. | |
46 | ||
47 | defaultFile = The default filename, or the empty string. | |
48 | ||
49 | wildcard = A wildcard, such as "*.*". | |
50 | ||
51 | style = A dialog style. A bitlist of: | |
52 | ||
53 | wxOPEN This is an open dialog (Windows only). | |
54 | ||
55 | wxSAVE This is a save dialog (Windows only). | |
56 | ||
57 | wxHIDE_READONLY Hide read-only files (Windows only). | |
58 | ||
59 | wxOVERWRITE_PROMPT Prompt for a conformation if a file will be overridden (Windows only). | |
60 | ||
61 | pos = Dialog position. | |
62 | """ |