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