X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=InterfaceQT4%2FmonChoixLangue.py;h=5715a48b739bf844e93a8d73ed1af6375089fcbb;hb=96176d0080e0d4efbd29d98c0df700a64a82acdc;hp=460dd3d2581781077da10987f9b0257d81c4b023;hpb=f8a48da7e7a06dc112581238a0ff37c4f55b8e22;p=tools%2Feficas.git diff --git a/InterfaceQT4/monChoixLangue.py b/InterfaceQT4/monChoixLangue.py index 460dd3d2..5715a48b 100644 --- a/InterfaceQT4/monChoixLangue.py +++ b/InterfaceQT4/monChoixLangue.py @@ -20,25 +20,22 @@ # Modules Python # Modules Eficas +from __future__ import absolute_import import os,sys,re from desChoixLangue import Ui_ChoixLangue -from determine import monEnvQT5 -if monEnvQT5: - from PyQt5.QtWidgets import QDialog, QRadioButton, QGroupBox, QButtonGroup - from PyQt5.QtGui import QPalette - from PyQt5.QtCore import QProcess, QFileInfo, Qt, QSize -else : - from PyQt4.QtGui import * - from PyQt4.QtCore import * + +from PyQt5.QtWidgets import QDialog, QRadioButton, QGroupBox, QButtonGroup +from PyQt5.QtGui import QPalette +from PyQt5.QtCore import QProcess, QFileInfo, Qt, QSize # Import des panels class MonChoixLangue(Ui_ChoixLangue,QDialog): """ - Classe définissant le panel associé aux mots-clés qui demandent - à l'utilisateur de choisir une seule valeur parmi une liste de valeurs - discrètes + Classe definissant le panel associe aux mots-cles qui demandent + a l'utilisateur de choisir une seule valeur parmi une liste de valeurs + discretes """ def __init__(self, parentAppli=None): QDialog.__init__(self,parentAppli) @@ -47,8 +44,7 @@ class MonChoixLangue(Ui_ChoixLangue,QDialog): self.parentAppli=parentAppli self.installLangue() self.code=None - if monEnvQT5: self.pB_OK.clicked.connect(self.choisitLangue) - else : self.connect(self.pB_OK,SIGNAL("clicked()"),self.choisitLangue) + self.pB_OK.clicked.connect(self.choisitLangue) def installLangue(self):