mailr13705 - /branches/gui_testing/gui/components/spectrum.py


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

Header


Content

Posted by edward on July 18, 2011 - 18:52:
Author: bugman
Date: Mon Jul 18 18:52:52 2011
New Revision: 13705

URL: http://svn.gna.org/viewcvs/relax?rev=13705&view=rev
Log:
The Spectrum_list GUI element delete() method has been implemented.

This is used to clear up the status observer objects.


Modified:
    branches/gui_testing/gui/components/spectrum.py

Modified: branches/gui_testing/gui/components/spectrum.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/components/spectrum.py?rev=13705&r1=13704&r2=13705&view=diff
==============================================================================
--- branches/gui_testing/gui/components/spectrum.py (original)
+++ branches/gui_testing/gui/components/spectrum.py Mon Jul 18 18:52:52 2011
@@ -124,6 +124,13 @@
         button.SetToolTipString("Read a spectral data file.")
 
 
+    def delete(self):
+        """Unregister the class."""
+
+        # Unregister the class.
+        status.observers.uf_gui.unregister(self.name)
+
+
     def init_grid(self, sizer):
         """Initialise the grid for the spectra listing.
 




Related Messages


Powered by MHonArc, Updated Mon Jul 18 20:20:10 2011