Package gui :: Package input_elements :: Module dir :: Class Selector_dir
[hide private]
[frames] | no frames]

Class Selector_dir

source code

Wizard GUI element for selecting directories.

Instance Methods [hide private]
 
__init__(self, name=None, default=None, parent=None, sizer=None, desc=None, message='File selection', style=1, tooltip=None, divider=None, padding=0, spacer=None, height_element=27, read_only=False)
Build the file selection element.
source code
 
Clear(self)
Special method for clearing or resetting the GUI element.
source code
list of str
GetValue(self)
Special method for returning the value of the GUI element.
source code
 
SetValue(self, value)
Special method for setting the value of the GUI element.
source code
Method Details [hide private]

__init__(self, name=None, default=None, parent=None, sizer=None, desc=None, message='File selection', style=1, tooltip=None, divider=None, padding=0, spacer=None, height_element=27, read_only=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.
  • 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.
  • read_only (bool) - A flag which if True means that the text of the element cannot be edited.

GetValue(self)

source code 

Special method for returning the value of the GUI element.

Returns: list of str
The string value.

SetValue(self, value)

source code 

Special method for setting the value of the GUI element.

Parameters:
  • value (str) - The value to set.