Package gui :: Package spin_viewer :: Module tree :: Class Mol_res_spin_tree
[hide private]
[frames] | no frames]

Class Mol_res_spin_tree

source code


The tree view class.

Instance Methods [hide private]
 
__init__(self, gui, parent=None, id=None)
Set up the tree GUI element.
source code
 
_resize(self, event)
Resize the tree element.
source code
 
_right_click(self, event)
Handle right clicks in the tree.
source code
 
_selection(self, event)
Handle changes in selection in the tree.
source code
 
action_molecule_molecule_copy(self, event)
Wrapper method.
source code
 
action_molecule_molecule_delete(self, event)
Wrapper method.
source code
 
action_molecule_molecule_deselect(self, event)
Wrapper method.
source code
 
action_molecule_molecule_name(self, event)
Wrapper method.
source code
 
action_molecule_molecule_type(self, event)
Wrapper method.
source code
 
action_molecule_molecule_select(self, event)
Wrapper method.
source code
 
action_molecule_residue_create(self, event)
Wrapper method.
source code
 
action_residue_residue_copy(self, event)
Wrapper method.
source code
 
action_residue_residue_delete(self, event)
Wrapper method.
source code
 
action_residue_residue_deselect(self, event)
Wrapper method.
source code
 
action_residue_residue_name(self, event)
Wrapper method.
source code
 
action_residue_residue_number(self, event)
Wrapper method.
source code
 
action_residue_residue_select(self, event)
Wrapper method.
source code
 
action_residue_spin_add(self, event)
Wrapper method.
source code
 
action_residue_spin_create_pseudo(self, event)
Wrapper method.
source code
 
action_root_molecule_create(self, event)
Wrapper method.
source code
 
action_spin_spin_copy(self, event)
Wrapper method.
source code
 
action_spin_spin_delete(self, event)
Wrapper method.
source code
 
action_spin_spin_deselect(self, event)
Wrapper method.
source code
 
action_spin_spin_element(self, event)
Wrapper method.
source code
 
action_spin_spin_name(self, event)
Wrapper method.
source code
 
action_spin_spin_number(self, event)
Wrapper method.
source code
 
action_spin_spin_select(self, event)
Wrapper method.
source code
dict
get_info(self)
Get the python data structure associated with the current item.
source code
 
menu_default(self)
The right click root menu.
source code
 
menu_molecule(self)
The right click molecule menu.
source code
 
menu_residue(self)
The right click molecule menu.
source code
 
menu_root(self)
The right click root menu.
source code
 
menu_spin(self)
The right click spin menu.
source code
 
prune_mol(self)
Remove any molecules which have been deleted.
source code
 
prune_res(self, mol_branch_id, mol_id)
Remove any molecules which have been deleted.
source code
 
prune_spin(self, mol_branch_id, res_branch_id, res_id)
Remove any spins which have been deleted.
source code
 
set_bitmap_mol(self, mol_branch_id, select=True)
Set the molecule bitmaps.
source code
 
set_bitmap_res(self, res_branch_id, select=True)
Set the residue bitmaps.
source code
 
set_bitmap_spin(self, spin_branch_id, select=True)
Set the spin bitmaps.
source code
 
update(self, pipe_name=None)
Update the tree view using the given data pipe.
source code
 
update_mol(self, mol, mol_id)
Update the given molecule in the tree.
source code
 
update_res(self, mol_branch_id, mol, res, res_id)
Update the given residue in the tree.
source code
 
update_spin(self, mol_branch_id, res_branch_id, mol, res, spin, spin_id)
Update the given spin in the tree.
source code
Class Variables [hide private]
  MENU_MOLECULE_MOLECULE_COPY = wx.NewId()
  MENU_MOLECULE_MOLECULE_DELETE = wx.NewId()
  MENU_MOLECULE_MOLECULE_DESELECT = wx.NewId()
  MENU_MOLECULE_MOLECULE_NAME = wx.NewId()
  MENU_MOLECULE_MOLECULE_SELECT = wx.NewId()
  MENU_MOLECULE_MOLECULE_TYPE = wx.NewId()
  MENU_MOLECULE_RESIDUE_CREATE = wx.NewId()
  MENU_RESIDUE_RESIDUE_COPY = wx.NewId()
  MENU_RESIDUE_RESIDUE_DELETE = wx.NewId()
  MENU_RESIDUE_RESIDUE_DESELECT = wx.NewId()
  MENU_RESIDUE_RESIDUE_NAME = wx.NewId()
  MENU_RESIDUE_RESIDUE_NUMBER = wx.NewId()
  MENU_RESIDUE_RESIDUE_SELECT = wx.NewId()
  MENU_RESIDUE_SPIN_ADD = wx.NewId()
  MENU_RESIDUE_SPIN_CREATE_PSEUDO = wx.NewId()
  MENU_ROOT_MOLECULE_CREATE = wx.NewId()
  MENU_ROOT_LOAD_SPINS = wx.NewId()
  MENU_SPIN_SPIN_COPY = wx.NewId()
  MENU_SPIN_SPIN_DELETE = wx.NewId()
  MENU_SPIN_SPIN_DESELECT = wx.NewId()
  MENU_SPIN_SPIN_ELEMENT = wx.NewId()
  MENU_SPIN_SPIN_NAME = wx.NewId()
  MENU_SPIN_SPIN_NUMBER = wx.NewId()
  MENU_SPIN_SPIN_SELECT = wx.NewId()
Method Details [hide private]

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

source code 

Set up the tree 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.

_right_click(self, event)

source code 

Handle right clicks in the tree.

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

_selection(self, event)

source code 

Handle changes in selection in the tree.

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

action_molecule_molecule_copy(self, event)

source code 

Wrapper method.

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

action_molecule_molecule_delete(self, event)

source code 

Wrapper method.

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

action_molecule_molecule_deselect(self, event)

source code 

Wrapper method.

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

action_molecule_molecule_name(self, event)

source code 

Wrapper method.

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

action_molecule_molecule_type(self, event)

source code 

Wrapper method.

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

action_molecule_molecule_select(self, event)

source code 

Wrapper method.

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

action_molecule_residue_create(self, event)

source code 

Wrapper method.

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

action_residue_residue_copy(self, event)

source code 

Wrapper method.

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

action_residue_residue_delete(self, event)

source code 

Wrapper method.

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

action_residue_residue_deselect(self, event)

source code 

Wrapper method.

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

action_residue_residue_name(self, event)

source code 

Wrapper method.

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

action_residue_residue_number(self, event)

source code 

Wrapper method.

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

action_residue_residue_select(self, event)

source code 

Wrapper method.

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

action_residue_spin_add(self, event)

source code 

Wrapper method.

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

action_residue_spin_create_pseudo(self, event)

source code 

Wrapper method.

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

action_root_molecule_create(self, event)

source code 

Wrapper method.

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

action_spin_spin_copy(self, event)

source code 

Wrapper method.

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

action_spin_spin_delete(self, event)

source code 

Wrapper method.

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

action_spin_spin_deselect(self, event)

source code 

Wrapper method.

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

action_spin_spin_element(self, event)

source code 

Wrapper method.

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

action_spin_spin_name(self, event)

source code 

Wrapper method.

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

action_spin_spin_number(self, event)

source code 

Wrapper method.

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

action_spin_spin_select(self, event)

source code 

Wrapper method.

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

get_info(self)

source code 

Get the python data structure associated with the current item.

Returns: dict
The dictionary of data.

prune_res(self, mol_branch_id, mol_id)

source code 

Remove any molecules which have been deleted.

Parameters:
  • mol_branch_id (TreeItemId) - The molecule branch ID of the wx.TreeCtrl object.
  • mol_id (str) - The molecule identification string.

prune_spin(self, mol_branch_id, res_branch_id, res_id)

source code 

Remove any spins which have been deleted.

Parameters:
  • mol_branch_id (TreeItemId) - The molecule branch ID of the wx.TreeCtrl object.
  • res_branch_id (TreeItemId) - The residue branch ID of the wx.TreeCtrl object.
  • res_id (str) - The residue identification string.

set_bitmap_mol(self, mol_branch_id, select=True)

source code 

Set the molecule bitmaps.

Parameters:
  • mol_branch_id (TreeItemId) - The molecule branch ID of the wx.TreeCtrl object.
  • select (bool) - The selection flag.

set_bitmap_res(self, res_branch_id, select=True)

source code 

Set the residue bitmaps.

Parameters:
  • res_branch_id (TreeItemId) - The residue branch ID of the wx.TreeCtrl object.
  • select (bool) - The selection flag.

set_bitmap_spin(self, spin_branch_id, select=True)

source code 

Set the spin bitmaps.

Parameters:
  • spin_branch_id (TreeItemId) - The spin branch ID of the wx.TreeCtrl object.
  • select (bool) - The selection flag.

update_mol(self, mol, mol_id)

source code 

Update the given molecule in the tree.

Parameters:
  • mol (MoleculeContainer instance) - The molecule container.
  • mol_id (str) - The molecule identification string.

update_res(self, mol_branch_id, mol, res, res_id)

source code 

Update the given residue in the tree.

Parameters:
  • mol_branch_id (TreeItemId) - The molecule branch ID of the wx.TreeCtrl object.
  • mol (MoleculeContainer instance) - The molecule container.
  • res (ResidueContainer instance) - The residue container.
  • res_id (str) - The residue identification string.

update_spin(self, mol_branch_id, res_branch_id, mol, res, spin, spin_id)

source code 

Update the given spin in the tree.

Parameters:
  • mol_branch_id (TreeItemId) - The molecule branch ID of the wx.TreeCtrl object.
  • res_branch_id (TreeItemId) - The residue branch ID of the wx.TreeCtrl object.
  • mol (MoleculeContainer instance) - The molecule container.
  • res (ResidueContainer instance) - The residue container.
  • spin (SpinContainer instance) - The spin container.
  • spin_id (str) - The spin identification string.