- abort = QMessageBox.warning(self.appliEficas,
- tr("Fichier"),
- tr("Le fichier <b>%s</b> est deja ouvert.",str(fichier)),
- tr("&Duplication"),
- tr("&Abort"))
+ if monEnvQT5 :
+ msgBox = QMessageBox()
+ msgBox.setWindowTitle(tr("Fichier"))
+ msgBox.setText(tr("Le fichier <b>%s</b> est deja ouvert", str(fichier)))
+ msgBox.addButton(tr("&Duplication"),0)
+ msgBox.addButton(tr("&Abandonner"),1)
+ abort=msgBox.exec_()
+ else :
+ abort = QMessageBox.warning(self.appliEficas,
+ tr("Fichier"),
+ tr("Le fichier <b>%s</b> est deja ouvert.",str(fichier)),
+ tr("&Duplication"),
+ tr("&Abort"))