From e28b625b0c6d6fb02c193684a2e69df10892099e Mon Sep 17 00:00:00 2001 From: "pascale.noyret" Date: Fri, 10 Feb 2017 10:26:47 +0100 Subject: [PATCH] pour pytel --- InterfaceQT4/gereIcones.py | 3 ++- InterfaceQT4/qtEficas.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/InterfaceQT4/gereIcones.py b/InterfaceQT4/gereIcones.py index 599b3a8d..20f37668 100644 --- a/InterfaceQT4/gereIcones.py +++ b/InterfaceQT4/gereIcones.py @@ -268,13 +268,14 @@ class ContientIcones: elif hasattr(mctype[0], "filters"): filters = mctype[0].filters else: - filters = None + filters = "" if len(mctype) > 2 and mctype[2] == "Sauvegarde": fichier = QFileDialog.getSaveFileName(self.appliEficas, tr('Sauvegarder Fichier'), self.appliEficas.CONFIGURATION.savedir, filters) else: + print filters fichier = QFileDialog.getOpenFileName(self.appliEficas, tr('Ouvrir Fichier'), self.appliEficas.CONFIGURATION.savedir, diff --git a/InterfaceQT4/qtEficas.py b/InterfaceQT4/qtEficas.py index fa00cdd1..f0117c41 100755 --- a/InterfaceQT4/qtEficas.py +++ b/InterfaceQT4/qtEficas.py @@ -461,7 +461,7 @@ class Appli(Ui_Eficas,QMainWindow): if Msg == None : self.viewmanager.handleAjoutGroup(listeGroup) else : - print "(il faut gerer les erreurs") + print ("il faut gerer les erreurs") def ChercheGrp(self): -- 2.39.2