__init__(self,
parent,
field=None,
message=wx.FileSelectorPromptStr,
defaultDir=wx.EmptyString,
defaultFile=wx.EmptyString,
wildcard=wx.FileSelectorDefaultWildcardStr,
style=wx.FD_DEFAULT_STYLE,
pos=wx.DefaultPosition)
(Constructor)
| source code
|
Setup the class and store the field.
- Parameters:
parent (Window) - The parent wx window object.
field (wx object or None) - The field to update with the file selection.
message (String) - The file selector prompt string.
defaultDir (String) - The directory to open in.
defaultFile (String) - The file to default selection to.
wildcard (String) - The file wildcard pattern. For example for opening PDB files,
this could be "PDB files (*.pdb)|*.pdb;*.PDB".
style (long) - The dialog style. To open a single file, set to wx.FD_OPEN. To
open multiple files, set to wx.FD_OPEN|wx.FD_MULTIPLE. To save a
single file, set to wx.FD_SAVE. To save multiple files, set to
wx.FD_SAVE|wx.FD_MULTIPLE.
pos (Point) - The window position.
|