Package gui :: Package spin_viewer :: Module containers :: Class Container
[hide private]
[frames] | no frames]

Class Container

source code


The molecule, residue, and spin container window.

Instance Methods [hide private]
 
__init__(self, gui, parent=None, id=None)
Set up the container GUI element.
source code
 
_resize(self, event)
Resize the tree element.
source code
 
display(self, info)
Display the info for the selected container.
source code
Method Details [hide private]

__init__(self, gui, parent=None, id=None)
(Constructor)

source code 

Set up the container GUI element.

Parameters:
  • gui (wx object) - The gui object.
  • parent (wx object) - The parent GUI element that this is to be attached to.
  • id (int) - The ID number.

_resize(self, event)

source code 

Resize the tree element.

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

display(self, info)

source code 

Display the info for the selected container.

Parameters:
  • info (list of str and int) - The information list consisting of the container type ('root', 'mol', 'res', or 'spin'), the molecule name, the residue number, the residue name, the spin number, and the spin name. The name and number information is dropped when not needed.