Author: bugman Date: Tue Dec 21 16:00:37 2010 New Revision: 11931 URL: http://svn.gna.org/viewcvs/relax?rev=11931&view=rev Log: Fix for the Mol_res_spin_tree class - the GUI wx object was not being passed in. Modified: branches/bieri_gui/gui_bieri/components/spin_view.py Modified: branches/bieri_gui/gui_bieri/components/spin_view.py URL: http://svn.gna.org/viewcvs/relax/branches/bieri_gui/gui_bieri/components/spin_view.py?rev=11931&r1=11930&r2=11931&view=diff ============================================================================== --- branches/bieri_gui/gui_bieri/components/spin_view.py (original) +++ branches/bieri_gui/gui_bieri/components/spin_view.py Tue Dec 21 16:00:37 2010 @@ -379,7 +379,7 @@ self.toolbar() # The splitter window. - splitter = Tree_splitter(self, -1) + splitter = Tree_splitter(self.gui, self, -1) sizer.Add(splitter, 1, wx.EXPAND|wx.ALL, self.border) @@ -509,9 +509,11 @@ class Tree_splitter(wx.SplitterWindow): """This splits the view of the tree view and spin container.""" - def __init__(self, parent, id): + def __init__(self, gui, parent, id): """Initialise the tree splitter window. + @param gui: The gui object. + @type gui: wx object @param parent: The parent wx object. @type parent: wx object @param id: The ID number. @@ -526,7 +528,7 @@ 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) + parent.tree_panel = Mol_res_spin_tree(gui, parent=self, id=-1) # Make sure the panes cannot be hidden. self.SetMinimumPaneSize(100)