mailr27460 - /trunk/gui/uf_objects.py


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

Header


Content

Posted by edward on February 03, 2015 - 12:31:
Author: bugman
Date: Tue Feb  3 12:31:23 2015
New Revision: 27460

URL: http://svn.gna.org/viewcvs/relax?rev=27460&view=rev
Log:
More fixes for the user function GUI object Destroy() method.

This page GUI object is destroyed by the wizard window Destroy() method, so 
destroying again causes
wxPython runtime errors.


Modified:
    trunk/gui/uf_objects.py

Modified: trunk/gui/uf_objects.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/gui/uf_objects.py?rev=27460&r1=27459&r2=27460&view=diff
==============================================================================
--- trunk/gui/uf_objects.py     (original)
+++ trunk/gui/uf_objects.py     Tue Feb  3 12:31:23 2015
@@ -261,9 +261,8 @@
             self.wizard = None
 
         # Destroy the user function page.
-        if hasattr(self, 'page') and self.page != None:
-            self.page.Destroy()
-        del self.page
+        if hasattr(self, 'page'):
+            del self.page
 
 
     def create_page(self, wizard=None, sync=None, execute=True):




Related Messages


Powered by MHonArc, Updated Tue Feb 03 12:40:02 2015