Package gui :: Package input_elements :: Module file :: Class Selector_file_window
[hide private]
[frames] | no frames]

Class Selector_file_window

source code


The file list selection window.

Instance Methods [hide private]
 
__init__(self, parent=None, name='', spacing=10)
Set up the file list selection window.
source code
list of str
GetValue(self)
Return the file names as a list.
source code
 
SetValue(self, values)
Set up the list of file names.
source code
 
add_buttons(self, sizer)
Add the buttons to the sizer.
source code
 
add_element(self, event=None, path=None)
Add a new file selection element to the list.
source code
 
add_file_list(self, sizer)
Initialise the control.
source code
 
close(self, event)
Close the window.
source code
 
delete(self, event=None)
Remove the last file selection item from the list.
source code
 
delete_all(self, event=None)
Remove all file selection items from the list.
source code
Class Variables [hide private]
  SIZE = 800, 600
  BORDER = 10
  SIZE_BUTTON = 150, 33
Method Details [hide private]

__init__(self, parent=None, name='', spacing=10)
(Constructor)

source code 

Set up the file list selection window.

Parameters:
  • parent (wx.Window instance or None) - The parent GUI element.
  • name (str) - The name of the window.
  • spacing (int) - The spacing between elements in pixels.

GetValue(self)

source code 

Return the file names as a list.

Returns: list of str
The list of file names.

SetValue(self, values)

source code 

Set up the list of file names.

Parameters:
  • values (list of str or None) - The list of file names to add.

add_buttons(self, sizer)

source code 

Add the buttons to the sizer.

Parameters:
  • sizer (wx.Sizer instance) - A sizer object.

add_element(self, event=None, path=None)

source code 

Add a new file selection element to the list.

Parameters:
  • event (wx event) - The wx event.
  • path (str or None) - The file path to set the element value to.

add_file_list(self, sizer)

source code 

Initialise the control.

Parameters:
  • sizer (wx.Sizer instance) - A sizer object.

close(self, event)

source code 

Close the window.

Parameters:
  • event (wx event) - The wx event.

delete(self, event=None)

source code 

Remove the last file selection item from the list.

Parameters:
  • event (wx event) - The wx event.

delete_all(self, event=None)

source code 

Remove all file selection items from the list.

Parameters:
  • event (wx event) - The wx event.