# -*- coding: utf-8 -*-
-# Copyright (C) 2007-2013 EDF R&D
+# Copyright (C) 2007-2017 EDF R&D
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# Modules Python
# Modules Eficas
+from __future__ import absolute_import
from desChoixCata import Ui_DChoixCata
-from determine import monEnvQT5
-if monEnvQT5 :
- from PyQt5.QtWidgets import QDialog
-else:
- from PyQt4.QtGui import *
+from PyQt5.QtWidgets import QDialog
from Extensions.i18n import tr
# Import des panels
self.TLNb.setText(tr("%d versions du catalogue sont disponibles", len(listeCata)))
if title is not None:
self.setWindowTitle(tr(title))
+ self.buttonOk.clicked.connect(self.cataChoisi)
+ self.buttonCancel.clicked.connect(self.sortSansChoix)
- def on_buttonCancel_clicked(self):
+
+ def sortSansChoix(self):
QDialog.reject(self)
- def on_buttonOk_clicked(self):
+ def cataChoisi(self):
QDialog.accept(self)