Package gui :: Package input_elements :: Module sequence_2D :: Class Sequence_window_2D
[hide private]
[frames] | no frames]

Class Sequence_window_2D

source code


The Python 2D sequence object editor window.

Instance Methods [hide private]
 
__init__(self, name='', seq_type='list', value_type='str', dim=None, titles=None)
Set up the string list editor window.
source code
list of lists of str
GetValue(self)
Return the values as a 2D sequence of values.
source code
 
SetValue(self, values)
Set up the list of lists values.
source code
 
add_list(self, sizer)
Set up the list control.
source code

Inherited from sequence.Sequence_window: add_buttons, append_row, close, delete_all

Class Variables [hide private]

Inherited from sequence.Sequence_window: BORDER, SIZE, SIZE_BUTTON

Method Details [hide private]

__init__(self, name='', seq_type='list', value_type='str', dim=None, titles=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 (tuple of int or None) - The fixed dimensions that the sequence must conform to.
  • titles (list of str) - The titles of each of the elements of the fixed width second dimension. If the dim argument is given, the length of this list must match the second number.
Overrides: sequence.Sequence_window.__init__

GetValue(self)

source code 

Return the values as a 2D sequence of values.

Returns: list of lists of str
The list of lists of values.
Overrides: sequence.Sequence_window.GetValue

SetValue(self, values)

source code 

Set up the list of lists values.

Parameters:
  • values (list of lists of str or None) - The list of lists of values to add to the list.
Overrides: sequence.Sequence_window.SetValue

add_list(self, sizer)

source code 

Set up the list control.

Parameters:
  • sizer (wx.Sizer instance) - A sizer object.
Overrides: sequence.Sequence_window.add_list