Salome HOME
Modifications liees a MT
[tools/eficas.git] / InterfaceQT4 / monViewRegles.py
index d180e671d497668732cefea23b6c34adcb8a3a3f..c096c8f55324a2739bf9428814a023564089bfe9 100644 (file)
@@ -1,5 +1,5 @@
 # -*- 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
 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
 # Modules Python
-import string,types,os
+from __future__ import absolute_import
+import types,os
 import traceback
 
 from Extensions.i18n import tr
-from PyQt4.QtGui import *
-from PyQt4.QtCore import *
+from PyQt5.QtCore import Qt
+from PyQt5.QtWidgets import QDialog, QListWidgetItem
 from desViewRegles import Ui_viewRegles
 
 # ------------------------------------ #
@@ -35,6 +36,9 @@ class ViewRegles(Ui_viewRegles,QDialog):
     def __init__(self,parent,liste,entete=None):
         QDialog.__init__(self,parent)
         self.setupUi(self)
+        self.setModal(False)
+        self.bclose.clicked.connect(self.close)
+
         if entete != None : self.setWindowTitle (entete)
         for ligne in liste :
           texte=ligne[0]