Author: bugman Date: Mon Dec 27 15:28:58 2010 New Revision: 11970 URL: http://svn.gna.org/viewcvs/relax?rev=11970&view=rev Log: The about dialogs are now created on the fly. This should save some start up time. Modified: branches/bieri_gui/gui_bieri/relax_gui.py Modified: branches/bieri_gui/gui_bieri/relax_gui.py URL: http://svn.gna.org/viewcvs/relax/branches/bieri_gui/gui_bieri/relax_gui.py?rev=11970&r1=11969&r2=11970&view=diff ============================================================================== --- branches/bieri_gui/gui_bieri/relax_gui.py (original) +++ branches/bieri_gui/gui_bieri/relax_gui.py Mon Dec 27 15:28:58 2010 @@ -144,10 +144,6 @@ # Close Box event self.Bind(wx.EVT_CLOSE, self.exit_gui) - # Pre-build the about dialogs, but do not show them. - self.dialog_about_gui = About_gui(None, -1, "") - self.dialog_about_relax = About_relax(None, -1, "") - # Run a script. if script: self.user_functions.script.script_exec(script) @@ -181,8 +177,11 @@ @type event: wx event """ + # Build the dialog. + dialog = About_gui(None, -1, "") + # The dialog. - self.dialog_about_gui.Show() + dialog.Show() def about_relax(self, event): @@ -192,8 +191,11 @@ @type event: wx event """ + # Build the dialog. + dialog = About_relax(None, -1, "") + # The dialog. - self.dialog_about_relax.Show() + dialog.Show() def action_state_save(self, event):