Package gui :: Package components :: Module spectrum :: Class Spectra_list
[hide private]
[frames] | no frames]

Class Spectra_list

source code


The GUI element for listing loaded spectral data.

Instance Methods [hide private]
 
__init__(self, gui=None, parent=None, box=None, id=None, fn_add=None, proportion=0, button_placement='default')
Build the spectral list GUI element.
source code
 
action_relax_fit_relax_time(self, event)
Launch the relax_fit.relax_time user function.
source code
 
action_spectrum_baseplane_rmsd(self, event)
Launch the spectrum.baseplane_rmsd user function.
source code
 
action_spectrum_delete(self, event)
Launch the spectrum.delete user function.
source code
 
action_spectrum_integration_points(self, event)
Launch the spectrum.integration_points user function.
source code
 
action_spectrum_replicated(self, event)
Launch the spectrum.replicated user function.
source code
bool
noe_spectrum_type(self, index)
Add the NOE spectral type info to the element.
source code
bool
relax_times(self, index)
Add the relaxation delay time info to the element.
source code
bool
replicates(self, index)
Add the replicated spectra info to the element.
source code
 
setup(self)
Override the base variables.
source code
 
update_data(self)
Method called from self.build_element_safe() to update the list data.
source code

Inherited from base_list.Base_list: Enable, add_buttons, build_element, build_element_safe, delete, init_element, is_complete, observer_register, on_right_click, resize, set_box_label, size_cols

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, gui=None, parent=None, box=None, id=None, fn_add=None, proportion=0, button_placement='default')
(Constructor)

source code 

Build the spectral list GUI element.

Parameters:
  • gui (wx.Frame instance) - The main GUI object.
  • parent (wx object) - The parent GUI element that this is to be attached to (the panel object).
  • data (class instance) - The data storage container.
  • box (wx.BoxSizer instance) - The vertical box sizer to pack this GUI component into.
  • id (str) - A unique identification string. This is used to register the update method with the GUI user function observer object.
  • fn_add (func) - The function to execute when clicking on the 'Add' button.
  • proportion (bool) - The window proportion parameter.
  • button_placement (str or None) - Override the button visibility and placement. The value of 'default' will leave the buttons at the default setting. The value of 'top' will place the buttons at the top, 'bottom' will place them at the bottom, and None will turn off the buttons.
Overrides: object.__init__

action_relax_fit_relax_time(self, event)

source code 

Launch the relax_fit.relax_time user function.

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

action_spectrum_baseplane_rmsd(self, event)

source code 

Launch the spectrum.baseplane_rmsd user function.

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

action_spectrum_delete(self, event)

source code 

Launch the spectrum.delete user function.

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

action_spectrum_integration_points(self, event)

source code 

Launch the spectrum.integration_points user function.

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

action_spectrum_replicated(self, event)

source code 

Launch the spectrum.replicated user function.

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

noe_spectrum_type(self, index)

source code 

Add the NOE spectral type info to the element.

Parameters:
  • index (int) - The column index for the data.
Returns: bool
True if a spectrum type exists, False otherwise.

relax_times(self, index)

source code 

Add the relaxation delay time info to the element.

Parameters:
  • index (int) - The column index for the data.
Returns: bool
True if relaxation times exist, False otherwise.

replicates(self, index)

source code 

Add the replicated spectra info to the element.

Parameters:
  • index (int) - The column index for the data.
Returns: bool
True if relaxation times exist, False otherwise.