Author: bugman Date: Fri Sep 16 10:31:31 2011 New Revision: 14657 URL: http://svn.gna.org/viewcvs/relax?rev=14657&view=rev Log: The relax_data.delete user function can now have a starting ID string value. Modified: 1.3/gui/user_functions/relax_data.py Modified: 1.3/gui/user_functions/relax_data.py URL: http://svn.gna.org/viewcvs/relax/1.3/gui/user_functions/relax_data.py?rev=14657&r1=14656&r2=14657&view=diff ============================================================================== --- 1.3/gui/user_functions/relax_data.py (original) +++ 1.3/gui/user_functions/relax_data.py Fri Sep 16 10:31:31 2011 @@ -41,11 +41,21 @@ class Relax_data(UF_base): """The container class for holding all GUI elements.""" - def delete(self): - """The relax_data.delete user function.""" + def delete(self, ri_id=None): + """The relax_data.delete user function. + + @keyword ri_id: The starting relaxation data ID string. + @type ri_id: str + """ + + # Create the wizard. + wizard, page = self.create_wizard(size_x=700, size_y=400, name='relax_data.delete', uf_page=Delete_page, return_page=True) + + # Default ID. + if ri_id: + page.ri_id.SetValue(str_to_gui(ri_id)) # Execute the wizard. - wizard = self.create_wizard(size_x=700, size_y=400, name='relax_data.delete', uf_page=Delete_page) wizard.run()