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

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, GetToolTipString, 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_MOLECULE_MOLECULE_COPY = 344
  MENU_MOLECULE_MOLECULE_DELETE = 345
  MENU_MOLECULE_MOLECULE_DESELECT = 346
  MENU_MOLECULE_MOLECULE_NAME = 347
  MENU_MOLECULE_MOLECULE_SELECT = 348
  MENU_MOLECULE_MOLECULE_TYPE = 349
  MENU_MOLECULE_RESIDUE_CREATE = 350
  MENU_RESIDUE_RESIDUE_COPY = 351
  MENU_RESIDUE_RESIDUE_DELETE = 352
  MENU_RESIDUE_RESIDUE_DESELECT = 353
  MENU_RESIDUE_RESIDUE_NAME = 354
  MENU_RESIDUE_RESIDUE_NUMBER = 355
  MENU_RESIDUE_RESIDUE_SELECT = 356
  MENU_RESIDUE_SPIN_ADD = 357
  MENU_RESIDUE_SPIN_CREATE_PSEUDO = 358
  MENU_ROOT_MOLECULE_CREATE = 359
  MENU_ROOT_LOAD_SPINS = 360
  MENU_SPIN_SPIN_COPY = 361
  MENU_SPIN_SPIN_DELETE = 362
  MENU_SPIN_SPIN_DESELECT = 363
  MENU_SPIN_SPIN_ELEMENT = 364
  MENU_SPIN_SPIN_NAME = 365
  MENU_SPIN_SPIN_NUMBER = 366
  MENU_SPIN_SPIN_SELECT = 367
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, ToolTipString, 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.

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.