mailr13460 - /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:39:
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)
 
 




Related Messages


Powered by MHonArc, Updated Wed Jul 06 19:00:02 2011