Author: bugman Date: Wed Jul 6 18:39:31 2011 New Revision: 13460 URL: http://svn.gna.org/viewcvs/relax?rev=13460&view=rev Log: Renamed the tree info() method to get_info() and fixed its operation. Modified: branches/gui_testing/gui/spin_viewer/tree.py Modified: branches/gui_testing/gui/spin_viewer/tree.py URL: http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/spin_viewer/tree.py?rev=13460&r1=13459&r2=13460&view=diff ============================================================================== --- branches/gui_testing/gui/spin_viewer/tree.py (original) +++ branches/gui_testing/gui/spin_viewer/tree.py Wed Jul 6 18:39:31 2011 @@ -298,14 +298,17 @@ self.update() - def info(self): + def get_info(self): """Get the python data structure associated with the current item. @return: The dictionary of data. @rtype: dict """ - # Return the python data. + # The current item. + item = self.tree.GetSelection() + + # Return the associated python data. return self.tree.GetItemPyData(item)