Author: bugman Date: Fri Sep 9 16:25:27 2011 New Revision: 14623 URL: http://svn.gna.org/viewcvs/relax?rev=14623&view=rev Log: Simplified the deselect user functions using the new GUI uf design. Modified: 1.3/gui/user_functions/deselect.py Modified: 1.3/gui/user_functions/deselect.py URL: http://svn.gna.org/viewcvs/relax/1.3/gui/user_functions/deselect.py?rev=14623&r1=14622&r2=14623&view=diff ============================================================================== --- 1.3/gui/user_functions/deselect.py (original) +++ 1.3/gui/user_functions/deselect.py Fri Sep 9 16:25:27 2011 @@ -39,51 +39,35 @@ class Deselect(UF_base): """The container class for holding all GUI elements.""" - def all(self, event): - """The deselect.all user function. - - @param event: The wx event. - @type event: wx event - """ - - # Execute the wizard. - wizard = self.create_wizard(size_x=600, size_y=300, name='deselect.all', uf_page=All_page, apply_button=False) - wizard.run() - - - def read(self, event): - """The deselect.read user function. - - @param event: The wx event. - @type event: wx event - """ - - # Execute the wizard. - wizard = self.create_wizard(size_x=900, size_y=700, name='deselect.read', uf_page=Read_page) - wizard.run() - - - def reverse(self, event): - """The deselect.reverse user function. - - @param event: The wx event. - @type event: wx event - """ - - # Execute the wizard. - wizard = self.create_wizard(size_x=700, size_y=400, name='deselect.reverse', uf_page=Reverse_page, apply_button=False) - wizard.run() - - - def spin(self, event): - """The deselect.spin user function. - - @param event: The wx event. - @type event: wx event - """ - - # Execute the wizard. - wizard = self.create_wizard(size_x=700, size_y=500, name='deselect.spin', uf_page=Spin_page) + def all(self): + """The deselect.all user function.""" + + # Execute the wizard. + wizard, page = self.create_wizard(size_x=600, size_y=300, name='deselect.all', uf_page=All_page, apply_button=False) + wizard.run() + + + def read(self): + """The deselect.read user function.""" + + # Execute the wizard. + wizard, page = self.create_wizard(size_x=900, size_y=700, name='deselect.read', uf_page=Read_page) + wizard.run() + + + def reverse(self): + """The deselect.reverse user function.""" + + # Execute the wizard. + wizard, page = self.create_wizard(size_x=700, size_y=400, name='deselect.reverse', uf_page=Reverse_page, apply_button=False) + wizard.run() + + + def spin(self): + """The deselect.spin user function.""" + + # Execute the wizard. + wizard, page = self.create_wizard(size_x=700, size_y=500, name='deselect.spin', uf_page=Spin_page) wizard.run()