Author: bugman Date: Wed Jul 6 18:26:04 2011 New Revision: 13459 URL: http://svn.gna.org/viewcvs/relax?rev=13459&view=rev Log: Created the Mol_res_spin_tree.info() method for returning the python data of the current selection. 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=13459&r1=13458&r2=13459&view=diff ============================================================================== --- branches/gui_testing/gui/spin_viewer/tree.py (original) +++ branches/gui_testing/gui/spin_viewer/tree.py Wed Jul 6 18:26:04 2011 @@ -298,6 +298,17 @@ self.update() + def info(self): + """Get the python data structure associated with the current item. + + @return: The dictionary of data. + @rtype: dict + """ + + # Return the python data. + return self.tree.GetItemPyData(item) + + def menu_molecule(self): """The right click molecule menu."""