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

Class Molecule

source code


The molecule container.

Instance Methods [hide private]
 
__init__(self, box, parent, mol_name=None, mol_id=None, select=True)
Set up the molecule container.
source code
wx.Sizer instance
header_molecule(self)
Create the header for the molecule container.
source code

Inherited from Container_base: create_head_text, create_subtitle, create_title

Class Variables [hide private]

Inherited from Container_base: border

Method Details [hide private]

__init__(self, box, parent, mol_name=None, mol_id=None, select=True)
(Constructor)

source code 

Set up the molecule container.

Parameters:
  • box (wx object) - The box sizer element to pack the contents into.
  • parent (wx object) - The parent GUI element.
  • mol_name (str) - The name of the molecule.
  • mol_id (str) - The molecule ID string.
  • select (bool) - The selection state.

header_molecule(self)

source code 

Create the header for the molecule container.

Returns: wx.Sizer instance
The sizer containing the header.