Package gui :: Package analyses :: Package elements :: Module model_list :: Class Model_list
[hide private]
[frames] | no frames]

Class Model_list

source code


The model list GUI element.

Instance Methods [hide private]
 
__init__(self, parent, box)
Build the combo box list widget for a list of list selections.
source code
 
Enable(self, enable=True)
Enable or disable the element.
source code
list of str
GetValue(self)
Return the list of models.
source code
 
set_value(self, value)
Store the list of models.
source code
 
modify(self, event=None)
Modify the model selection.
source code
 
update_button(self)
Update the button bitmap as needed.
source code
Class Variables [hide private]
  border = 10
The border width, in pixels.
  desc = None
The short description for the GUI element.
  model_desc = []
The short description for each model.
  models = []
The list of names of the model.
  params = []
The list of parameters of each model in string form.
  warning = None
A warning string which if set will present a warning message to the user prior to allowing them to modify the list of models.
  red_flag = False
A flag which if True will cause the flag icon to turn red if the model list has been modified.
  size = wx.Size(1024, 750)
The initial size of the window.
  tooltip = None
The tooltip string to add to the text and field wx GUI elements.
  tooltip_button = None
The separate tooltip string to add to the button wx GUI element.
Method Details [hide private]

__init__(self, parent, box)
(Constructor)

source code 

Build the combo box list widget for a list of list selections.

Parameters:
  • parent (wx object instance) - The parent GUI element.
  • box (wx.Sizer instance) - The sizer to put the combo box widget into.

Enable(self, enable=True)

source code 

Enable or disable the element.

Parameters:
  • enable (bool) - The flag specifying if the element should be enabled or disabled.

GetValue(self)

source code 

Return the list of models.

Returns: list of str
The list of models.

set_value(self, value)

source code 

Store the list of models.

Parameters:
  • value (list of str) - The list of models.

modify(self, event=None)

source code 

Modify the model selection.

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