Author: bugman
Date: Tue Feb 3 10:48:10 2015
New Revision: 27452
URL: http://svn.gna.org/viewcvs/relax?rev=27452&view=rev
Log:
More memory saving improvements for the GUI test suite tearDown() method.
The clean_up_windows() method now loops through all top level windows (frames,
dialogs, panels,
etc.) and calls their Destroy() method.
Modified:
trunk/test_suite/gui_tests/base_classes.py
Modified: trunk/test_suite/gui_tests/base_classes.py
URL:
http://svn.gna.org/viewcvs/relax/trunk/test_suite/gui_tests/base_classes.py?rev=27452&r1=27451&r2=27452&view=diff
==============================================================================
--- trunk/test_suite/gui_tests/base_classes.py (original)
+++ trunk/test_suite/gui_tests/base_classes.py Tue Feb 3 10:48:10 2015
@@ -167,6 +167,11 @@
if hasattr(self.app.gui, 'spin_viewer'):
self.app.gui.spin_viewer.Destroy()
del self.app.gui.spin_viewer
+
+ # Kill all other windows.
+ for window in wx.GetTopLevelWindows():
+ if window:
+ window.Destroy()
def new_analysis_wizard(self, analysis_type=None, analysis_name=None,
pipe_name=None, pipe_bundle=None):
_______________________________________________
relax (http://www.nmr-relax.com)
This is the relax-commits mailing list
[email protected]
To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits