Author: bugman
Date: Tue Feb 3 16:44:21 2015
New Revision: 27481
URL: http://svn.gna.org/viewcvs/relax?rev=27481&view=rev
Log:
Wizard window objects in the GUI can now be named.
This will help with debugging the GUI memory usage.
Modified:
trunk/gui/wizards/wiz_objects.py
Modified: trunk/gui/wizards/wiz_objects.py
URL:
http://svn.gna.org/viewcvs/relax/trunk/gui/wizards/wiz_objects.py?rev=27481&r1=27480&r2=27481&view=diff
==============================================================================
--- trunk/gui/wizards/wiz_objects.py (original)
+++ trunk/gui/wizards/wiz_objects.py Tue Feb 3 16:44:21 2015
@@ -1,6 +1,6 @@
###############################################################################
# #
-# Copyright (C) 2010-2014 Edward d'Auvergne #
+# Copyright (C) 2010-2015 Edward d'Auvergne #
# #
# This file is part of the program relax (http://www.nmr-relax.com). #
# #
@@ -366,9 +366,11 @@
TEXT_SKIP = " Skip"
- def __init__(self, parent=None, size_x=400, size_y=400, title='',
border=10, style=wx.DEFAULT_DIALOG_STYLE):
+ def __init__(self, name=None, parent=None, size_x=400, size_y=400,
title='', border=10, style=wx.DEFAULT_DIALOG_STYLE):
"""Set up the window.
+ @keyword name: The identifying name of the wizard window.
+ @type name: str or None
@keyword parent: The parent window.
@type parent: wx.Window instance
@keyword size_x: The width of the wizard.
@@ -387,6 +389,7 @@
self._size_x = size_x
self._size_y = size_y
self._border = border
+ self.name = name
# Execute the base class method.
wx.Dialog.__init__(self, parent, id=-1, title=title, style=style)
_______________________________________________
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