mailr13459 - /branches/gui_testing/gui/spin_viewer/tree.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on July 06, 2011 - 18:26:
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."""
 




Related Messages


Powered by MHonArc, Updated Wed Jul 06 18:40:02 2011