__init__(self,
default='',
parent=None,
index=None,
wildcard=wx.FileSelectorDefaultWildcardStr,
style=wx.FD_DEFAULT_STYLE,
padding=3,
height_spacer=1,
width_spacer=2,
height_element=27,
preview=True,
can_be_none=False)
(Constructor)
| source code
|
Set up the file GUI element.
- Parameters:
default (str) - The default value of the element.
parent (wx.Panel instance) - The parent GUI element.
index (int) - The index of the file element, to display its sequence number in
the GUI element.
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.
padding (int) - Spacing to the left and right of the widgets.
height_spacer (int) - The amount of spacing to add below the field in pixels.
width_spacer (int) - The amount of spacing to add horizontally between the TextCtrl
and buttons in pixels.
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.
can_be_none (bool) - A flag which specifies if the element is allowed to have the None
value.
|