Author: bugman Date: Mon Dec 13 14:44:24 2010 New Revision: 11776 URL: http://svn.gna.org/viewcvs/relax?rev=11776&view=rev Log: Improvements to the molecule.delete user function window. Modified: branches/bieri_gui/gui_bieri/user_functions/molecule.py Modified: branches/bieri_gui/gui_bieri/user_functions/molecule.py URL: http://svn.gna.org/viewcvs/relax/branches/bieri_gui/gui_bieri/user_functions/molecule.py?rev=11776&r1=11775&r2=11776&view=diff ============================================================================== --- branches/bieri_gui/gui_bieri/user_functions/molecule.py (original) +++ branches/bieri_gui/gui_bieri/user_functions/molecule.py Mon Dec 13 14:44:24 2010 @@ -147,12 +147,22 @@ # Delete the molecule. self.interpreter.molecule.delete(mol_id=id) + # Update. + self.update(None) + def update(self, event): - """Update the UI.""" + """Update the UI. + + @param event: The wx event. + @type event: wx event + """ # Clear the previous data. self.mol_name.Clear() + + # Clear the molecule name. + self.mol_name.SetValue('') # The list of molecule names. if pipes.cdp_name():