# -*- 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 determine import monEnvQT5
-if monEnvQT5:
- from PyQt5.QtCore import Qt
- from PyQt5.QtWidgets import QDialog
-else :
- from PyQt4.QtGui import *
- from PyQt4.QtCore import *
+from PyQt5.QtCore import Qt
+from PyQt5.QtWidgets import QDialog, QListWidgetItem
from desViewRegles import Ui_viewRegles
# ------------------------------------ #
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]