Package gui :: Package input_elements :: Module sequence :: Class Sequence_window
[hide private]
[frames] | no frames]

Class Sequence_window

source code


The Python sequence object editor window.

Instance Methods [hide private]
 
__init__(self, name='', seq_type='list', value_type='str', dim=None)
Set up the string list editor window.
source code
sequence type
GetValue(self)
Return the values as a sequence of values.
source code
 
SetValue(self, values)
Set up the list values.
source code
 
add_buttons(self, sizer)
Add the buttons to the sizer.
source code
 
add_list(self, sizer)
Set up the list control.
source code
 
append_row(self, event)
Append a new row to the list.
source code
 
close(self, event)
Close the window.
source code
 
delete_all(self, event)
Remove all items from the list.
source code
Class Variables [hide private]
  SIZE = 600, 600
  BORDER = 10
  SIZE_BUTTON = 150, 33
Method Details [hide private]

__init__(self, name='', seq_type='list', value_type='str', dim=None)
(Constructor)

source code 

Set up the string list editor window.

Parameters:
  • name (str) - The name of the window.
  • seq_type (str) - The type of Python sequence. This should be one of 'list' or 'tuple'.
  • value_type (str) - The type of Python data expected in the sequence. This should be one of 'float', 'int', or 'str'.
  • dim (int or None) - The fixed dimension that the sequence must conform to.

GetValue(self)

source code 

Return the values as a sequence of values.

Returns: sequence type
The sequence of values.

SetValue(self, values)

source code 

Set up the list values.

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

add_buttons(self, sizer)

source code 

Add the buttons to the sizer.

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

add_list(self, sizer)

source code 

Set up the list control.

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

append_row(self, event)

source code 

Append a new row to the list.

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

close(self, event)

source code 

Close the window.

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

delete_all(self, event)

source code 

Remove all items from the list.

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