Trees | Indices | Help |
|
---|
|
1 ############################################################################### 2 # # 3 # Copyright (C) 2010-2011 Edward d'Auvergne # 4 # # 5 # This file is part of the program relax. # 6 # # 7 # relax is free software; you can redistribute it and/or modify # 8 # it under the terms of the GNU General Public License as published by # 9 # the Free Software Foundation; either version 2 of the License, or # 10 # (at your option) any later version. # 11 # # 12 # relax is distributed in the hope that it will be useful, # 13 # but WITHOUT ANY WARRANTY; without even the implied warranty of # 14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # 15 # GNU General Public License for more details. # 16 # # 17 # You should have received a copy of the GNU General Public License # 18 # along with relax; if not, write to the Free Software # 19 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # 20 # # 21 ############################################################################### 22 23 # Module docstring. 24 """The splitter window element to hold the tree view and containers.""" 25 26 27 # Python module imports. 28 import wx 29 30 # GUI module imports. 31 from gui.spin_viewer.containers import Container 32 from gui.spin_viewer.tree import Mol_res_spin_tree 33 3436 """This splits the view of the tree view and spin container.""" 376339 """Initialise the tree splitter window. 40 41 @param gui: The gui object. 42 @type gui: wx object 43 @param parent: The parent wx object. 44 @type parent: wx object 45 @param id: The ID number. 46 @type id: int 47 """ 48 49 # Execute the base class __init__() method. 50 wx.SplitterWindow.__init__(self, parent, id, style=wx.SP_LIVE_UPDATE) 51 52 # Add the tree view panel. 53 parent.tree_panel = Mol_res_spin_tree(gui, parent=self, id=-1) 54 55 # The container window. 56 parent.container = Container(gui, parent=self, id=-1) 57 58 # Make sure the panes cannot be hidden. 59 self.SetMinimumPaneSize(100) 60 61 # Split. 62 self.SplitVertically(parent.tree_panel, parent.container, 400)
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Apr 10 13:32:57 2013 | http://epydoc.sourceforge.net |