Salome HOME
*** empty log message ***
[tools/eficas.git] / Editeur / eficas.py
index f9e97f9b5fe14896d28cea74ab4b47e1c949282d..c683ed5ac905435daf72ed350ce4975c38fd6d64 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
 import string
 from Tkinter import Label
 import Pmw
-from tkCommonDialog import Dialog
-from tkFileDialog import *
-from tkMessageBox import askyesno,showerror
 import traceback
 
 # Modules Eficas
+from widgets import showerror
+from widgets import askopenfilename
 import patches
 import appli
 from widgets import Fenetre
@@ -50,6 +50,9 @@ class EFICAS(appli.APPLI):
   def exitEFICAS(self):
      self.bureau.exitEFICAS()
 
+  def getBureau(self):
+      return self.bureau
+      
   def browse(self,result):
       if result == 'Browse':
         self.ulfile = askopenfilename(title="Choix fichier :")
@@ -69,7 +72,7 @@ class EFICAS(appli.APPLI):
         self._ulfile.setentry('')
         self.dialog.deactivate(result)
         self.ulfile = None
-        self.text=None
+        self.text=""
 
   def get_file(self,unite=None,fic_origine = ''):
       """ 
@@ -92,6 +95,7 @@ class EFICAS(appli.APPLI):
       else:
           texte="Le fichier %s contient une commande %s\n" %(fic_origine,'POURSUITE')
           texte = texte+'Donnez le nom du fichier dont vous \n voulez faire une poursuite'
+      if self.test == 1: raise Exception("Erreur: "+texte)
       w = Label(self.dialog.interior(),
                 text = texte)
       w.pack(padx = 10, pady = 10)