Author: bugman Date: Tue Dec 21 15:38:32 2010 New Revision: 11925 URL: http://svn.gna.org/viewcvs/relax?rev=11925&view=rev Log: Renamed the mol_res_spin_tree structure to spin_view. Modified: branches/bieri_gui/gui_bieri/components/mol_res_spin_tree.py branches/bieri_gui/gui_bieri/relax_gui.py Modified: branches/bieri_gui/gui_bieri/components/mol_res_spin_tree.py URL: http://svn.gna.org/viewcvs/relax/branches/bieri_gui/gui_bieri/components/mol_res_spin_tree.py?rev=11925&r1=11924&r2=11925&view=diff ============================================================================== --- branches/bieri_gui/gui_bieri/components/mol_res_spin_tree.py (original) +++ branches/bieri_gui/gui_bieri/components/mol_res_spin_tree.py Tue Dec 21 15:38:32 2010 @@ -320,37 +320,7 @@ -class Tree_splitter(wx.SplitterWindow): - """This splits the view of the tree view and spin container.""" - - def __init__(self, parent, id): - """Initialise the tree splitter window. - - @param parent: The parent wx object. - @type parent: wx object - @param id: The ID number. - @type id: int - """ - - # Execute the base class __init__() method. - wx.SplitterWindow.__init__(self, parent, id, style = wx.SP_LIVE_UPDATE) - - # The container window. - parent.container = wx.Window(self, style=wx.BORDER_SUNKEN) - wx.StaticText(parent.container, -1, "The spin view window", (5,5)) - - # Add the tree view panel. - parent.tree_panel = Mol_res_spin_tree(self, parent=self, id=-1) - - # Make sure the panes cannot be hidden. - self.SetMinimumPaneSize(100) - - # Split. - self.SplitVertically(parent.tree_panel, parent.container, 400) - - - -class Tree_window(wx.Frame): +class Spin_view_window(wx.Frame): """A window element for the tree view.""" def __init__(self, *args, **kwds): @@ -499,3 +469,33 @@ # Update the tree view. self.tree_panel.update() + + + +class Tree_splitter(wx.SplitterWindow): + """This splits the view of the tree view and spin container.""" + + def __init__(self, parent, id): + """Initialise the tree splitter window. + + @param parent: The parent wx object. + @type parent: wx object + @param id: The ID number. + @type id: int + """ + + # Execute the base class __init__() method. + wx.SplitterWindow.__init__(self, parent, id, style = wx.SP_LIVE_UPDATE) + + # The container window. + parent.container = wx.Window(self, style=wx.BORDER_SUNKEN) + wx.StaticText(parent.container, -1, "The spin view window", (5,5)) + + # Add the tree view panel. + parent.tree_panel = Mol_res_spin_tree(self, parent=self, id=-1) + + # Make sure the panes cannot be hidden. + self.SetMinimumPaneSize(100) + + # Split. + self.SplitVertically(parent.tree_panel, parent.container, 400) Modified: branches/bieri_gui/gui_bieri/relax_gui.py URL: http://svn.gna.org/viewcvs/relax/branches/bieri_gui/gui_bieri/relax_gui.py?rev=11925&r1=11924&r2=11925&view=diff ============================================================================== --- branches/bieri_gui/gui_bieri/relax_gui.py (original) +++ branches/bieri_gui/gui_bieri/relax_gui.py Tue Dec 21 15:38:32 2010 @@ -52,7 +52,7 @@ from analyses.results import Results_summary from analyses.results_analysis import see_results from base_classes import Container -from components.mol_res_spin_tree import Tree_window +from components.spin_view import Spin_view_window from controller import Controller from filedialog import opendir, openfile, savefile from menu import Menu @@ -132,8 +132,8 @@ # Build the relax prompt, but don't show it. self.relax_prompt = Prompt(None, -1, "", parent=self) - # Build the tree view window, but don't show it. - self.mol_res_spin_tree = Tree_window(None, -1, "", parent=self) + # Build the spin view window, but don't show it. + self.spin_view = Spin_view_window(None, -1, "", parent=self) rx_data = ds.relax_gui.analyses[self.noe_index[0]] self.frame_1_statusbar = self.CreateStatusBar(3, 0) @@ -567,7 +567,7 @@ """ # Open the window. - self.mol_res_spin_tree.Show() + self.spin_view.Show() def state_load(self, event):