Author: bugman Date: Wed Jun 22 18:40:48 2011 New Revision: 13173 URL: http://svn.gna.org/viewcvs/relax?rev=13173&view=rev Log: The name of the data pipe is now taken as the analysis type followed by the local date and time. This is in the new analysis window. Modified: branches/gui_testing/gui/analyses/wizard.py Modified: branches/gui_testing/gui/analyses/wizard.py URL: http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/analyses/wizard.py?rev=13173&r1=13172&r2=13173&view=diff ============================================================================== --- branches/gui_testing/gui/analyses/wizard.py (original) +++ branches/gui_testing/gui/analyses/wizard.py Wed Jun 22 18:40:48 2011 @@ -25,6 +25,7 @@ # Python module imports. from os import sep +from time import asctime, localtime import wx from wx.lib import buttons @@ -95,7 +96,11 @@ @type event: wx event """ - self.pipe_name.SetValue('test') + # Generate a name for the data pipe based on the type and time. + name = "%s (%s)" % (self.parent.analysis_type, asctime(localtime())) + + # Update the field. + self.pipe_name.SetValue(str_to_gui(name))