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]
EvtHandler
__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
 
create_molecule(self, event)
Wrapper method.
source code
 
create_residue(self, event)
Wrapper method.
source code
 
create_spin(self, event)
Wrapper method.
source code
 
delete_molecule(self, event)
Wrapper method.
source code
 
delete_residue(self, event)
Wrapper method.
source code
 
delete_spin(self, event)
Wrapper method.
source code
 
deselect_molecule(self, event)
Wrapper method.
source code
 
deselect_residue(self, event)
Wrapper method.
source code
 
deselect_spin(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
 
select_molecule(self, event)
Wrapper method.
source code
 
select_residue(self, event)
Wrapper method.
source code
 
select_spin(self, event)
Wrapper method.
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

Inherited from wx._core.Window: AcceptsFocus, AcceptsFocusFromKeyboard, AddChild, AdjustForLayoutDirection, AssociateHandle, CacheBestSize, CanSetTransparent, CaptureMouse, Center, CenterOnParent, Centre, CentreOnParent, ClearBackground, ClientToScreen, ClientToScreenXY, ClientToWindowSize, Close, ConvertDialogPointToPixels, ConvertDialogSizeToPixels, ConvertPixelPointToDialog, ConvertPixelSizeToDialog, Create, DLG_PNT, DLG_SZE, Destroy, DestroyChildren, Disable, DissociateHandle, DragAcceptFiles, Enable, FindWindowById, FindWindowByLabel, FindWindowByName, Fit, FitInside, Freeze, GetAcceleratorTable, GetAdjustedBestSize, GetAutoLayout, GetBackgroundColour, GetBackgroundStyle, GetBestFittingSize, GetBestSize, GetBestSizeTuple, GetBestVirtualSize, GetBorder, GetCaret, GetCharHeight, GetCharWidth, GetChildren, GetClientAreaOrigin, GetClientRect, GetClientSize, GetClientSizeTuple, GetConstraints, GetContainingSizer, GetCursor, GetDefaultAttributes, GetDropTarget, GetEffectiveMinSize, GetEventHandler, GetExtraStyle, GetFont, GetForegroundColour, GetFullTextExtent, GetGrandParent, GetGtkWidget, GetHandle, GetHelpText, GetHelpTextAtPoint, GetId, GetLabel, GetLayoutDirection, GetMaxHeight, GetMaxSize, GetMaxWidth, GetMinHeight, GetMinSize, GetMinWidth, GetName, GetParent, GetPosition, GetPositionTuple, GetRect, GetScreenPosition, GetScreenPositionTuple, GetScreenRect, GetScrollPos, GetScrollRange, GetScrollThumb, GetSize, GetSizeTuple, GetSizer, GetTextExtent, GetThemeEnabled, GetToolTip, GetTopLevelParent, GetUpdateClientRect, GetUpdateRegion, GetValidator, GetVirtualSize, GetVirtualSizeTuple, GetWindowBorderSize, GetWindowStyle, GetWindowStyleFlag, GetWindowVariant, HasCapture, HasFlag, HasMultiplePages, HasScrollbar, HasTransparentBackground, Hide, HitTest, HitTestXY, InheritAttributes, InheritsBackgroundColour, InitDialog, InvalidateBestSize, IsBeingDeleted, IsDoubleBuffered, IsEnabled, IsExposed, IsExposedPoint, IsExposedRect, IsFrozen, IsRetained, IsShown, IsShownOnScreen, IsTopLevel, Layout, LineDown, LineUp, Lower, MakeModal, Move, MoveAfterInTabOrder, MoveBeforeInTabOrder, MoveXY, Navigate, PageDown, PageUp, PopEventHandler, PopupMenu, PopupMenuXY, PostCreate, PrepareDC, PushEventHandler, Raise, Refresh, RefreshRect, RegisterHotKey, ReleaseMouse, RemoveChild, RemoveEventHandler, Reparent, ScreenToClient, ScreenToClientXY, ScrollLines, ScrollPages, ScrollWindow, SendSizeEvent, SetAcceleratorTable, SetAutoLayout, SetBackgroundColour, SetBackgroundStyle, SetBestFittingSize, SetCaret, SetClientRect, SetClientSize, SetClientSizeWH, SetConstraints, SetContainingSizer, SetCursor, SetDimensions, SetDoubleBuffered, SetDropTarget, SetEventHandler, SetExtraStyle, SetFocus, SetFocusFromKbd, SetFont, SetForegroundColour, SetHelpText, SetHelpTextForId, SetId, SetInitialSize, SetLabel, SetLayoutDirection, SetMaxSize, SetMinSize, SetName, SetOwnBackgroundColour, SetOwnFont, SetOwnForegroundColour, SetPosition, SetRect, SetScrollPos, SetScrollbar, SetSize, SetSizeHints, SetSizeHintsSz, SetSizeWH, SetSizer, SetSizerAndFit, SetThemeEnabled, SetToolTip, SetToolTipString, SetTransparent, SetValidator, SetVirtualSize, SetVirtualSizeHints, SetVirtualSizeHintsSz, SetVirtualSizeWH, SetWindowStyle, SetWindowStyleFlag, SetWindowVariant, ShouldInheritColours, Show, Thaw, ToggleWindowStyle, TransferDataFromWindow, TransferDataToWindow, UnregisterHotKey, Update, UpdateWindowUI, UseBgCol, Validate, WarpPointer, WindowToClientSize, __repr__

Inherited from wx._core.EvtHandler: AddPendingEvent, Bind, Connect, Disconnect, GetEvtHandlerEnabled, GetNextHandler, GetPreviousHandler, ProcessEvent, ProcessPendingEvents, SetEvtHandlerEnabled, SetNextHandler, SetPreviousHandler, Unbind

Inherited from wx._core.EvtHandler (private): _setOORInfo

Inherited from wx._core.Object: GetClassName, IsSameAs

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

Static Methods [hide private]

Inherited from wx._core.Window: FindFocus, GetCapture, GetClassDefaultAttributes, NewControlId, NextControlId, PrevControlId

Class Variables [hide private]
  MENU_ROOT_MOLECULE_CREATE = 127
  MENU_ROOT_LOAD_SPINS = 128
  MENU_SPIN_SPIN_DELETE = 129
  MENU_SPIN_SPIN_SELECT = 130
  MENU_SPIN_SPIN_DESELECT = 131
  MENU_RESIDUE_SPIN_ADD = 132
  MENU_RESIDUE_RESIDUE_DELETE = 133
  MENU_RESIDUE_RESIDUE_SELECT = 134
  MENU_RESIDUE_RESIDUE_DESELECT = 135
  MENU_MOLECULE_RESIDUE_CREATE = 136
  MENU_MOLECULE_MOLECULE_DELETE = 137
  MENU_MOLECULE_MOLECULE_DESELECT = 138
  MENU_MOLECULE_MOLECULE_SELECT = 139
Properties [hide private]

Inherited from wx._core.Window: AcceleratorTable, AutoLayout, BackgroundColour, BackgroundStyle, BestSize, BestVirtualSize, Border, Caret, CharHeight, CharWidth, Children, ClientAreaOrigin, ClientRect, ClientSize, Constraints, ContainingSizer, Cursor, DefaultAttributes, DropTarget, EffectiveMinSize, Enabled, EventHandler, ExtraStyle, Font, ForegroundColour, GrandParent, GtkWidget, Handle, HelpText, Id, Label, LayoutDirection, MaxHeight, MaxSize, MaxWidth, MinHeight, MinSize, MinWidth, Name, Parent, Position, Rect, ScreenPosition, ScreenRect, Shown, Size, Sizer, ThemeEnabled, ToolTip, TopLevel, TopLevelParent, UpdateClientRect, UpdateRegion, Validator, VirtualSize, WindowStyle, WindowStyleFlag, WindowVariant, thisown

Inherited from wx._core.EvtHandler: EvtHandlerEnabled, NextHandler, PreviousHandler

Inherited from wx._core.Object: ClassName

Inherited from object: __class__

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.
Returns: EvtHandler
Overrides: object.__init__

_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.

create_molecule(self, event)

source code 

Wrapper method.

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

create_residue(self, event)

source code 

Wrapper method.

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

create_spin(self, event)

source code 

Wrapper method.

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

delete_molecule(self, event)

source code 

Wrapper method.

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

delete_residue(self, event)

source code 

Wrapper method.

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

delete_spin(self, event)

source code 

Wrapper method.

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

deselect_molecule(self, event)

source code 

Wrapper method.

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

deselect_residue(self, event)

source code 

Wrapper method.

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

deselect_spin(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.

select_molecule(self, event)

source code 

Wrapper method.

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

select_residue(self, event)

source code 

Wrapper method.

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

select_spin(self, event)

source code 

Wrapper method.

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

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.