Salome HOME
pour elts de structure
[tools/eficas.git] / Editeur / splash.py
index 3002d3759dbd322e9f3ddfee626b526da5c072eb..2918ddfe588f57a32fc595372583b1979e35c477 100644 (file)
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
 #            CONFIGURATION MANAGEMENT OF EDF VERSION
 # ======================================================================
 # COPYRIGHT (C) 1991 - 2002  EDF R&D                  WWW.CODE-ASTER.ORG
@@ -44,9 +45,9 @@ class SplashScreen(Toplevel):
         Provides a splash screen. Usage:
         Subclass and override 'CreateWidgets()'
         In constructor of main window/application call
-        - S = SplashScreen(main=self)        (if caller is Toplevel)
-        - S = SplashScreen(main=self.master) (if caller is Frame)
-        - S.quit()  after you are done creating your widgets etc.
+           - S = SplashScreen(main=self)        (if caller is Toplevel)
+           - S = SplashScreen(main=self.master) (if caller is Frame)
+           - S.quit()  after you are done creating your widgets etc.
     """
     def __init__(self, master=None,**args):
         Toplevel.__init__(self, master, relief='groove',
@@ -144,7 +145,6 @@ class SplashScreen(Toplevel):
         self.progress = None
         self.destroy()
         if self.main:
-           self.main.update()
-           self.main.deiconify()
            centerwindow(self.main,parent='sans')
+           self.main.deiconify()