__init__(self,
name=None,
default=None,
parent=None,
sizer=None,
desc=None,
message='File selection',
wildcard=wx.FileSelectorDefaultWildcardStr,
style=wx.FD_DEFAULT_STYLE,
tooltip=None,
divider=None,
padding=0,
spacer=None,
height_element=27,
preview=True,
read_only=False,
can_be_none=False)
(Constructor)
| source code
|
Build the file selection element.
- Parameters:
name (str) - The name of the element to use in titles, etc.
default (str) - The default value of the element.
parent (wx.Panel instance) - The wizard GUI element.
sizer (wx.Sizer instance) - The sizer to put the input field into.
desc (str) - The text description.
message (String) - The file selector prompt string.
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.
tooltip (str) - The tooltip which appears on hovering over all the GUI elements.
divider (int) - The position of the divider.
padding (int) - Spacing to the left and right of the widgets.
spacer (None or int) - The amount of spacing to add below the field in pixels. If None,
a stretchable spacer will be used.
height_element (int) - The height in pixels of the GUI element.
preview (bool) - A flag which if true will allow the file to be previewed.
read_only (bool) - A flag which if True means that the text of the element cannot be
edited.
can_be_none (bool) - A flag which specifies if the element is allowed to have the None
value.
|