Salome HOME
projects
/
tools
/
eficas.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
optim eciture
[tools/eficas.git]
/
InterfaceQT4
/
monViewRegles.py
diff --git
a/InterfaceQT4/monViewRegles.py
b/InterfaceQT4/monViewRegles.py
index d180e671d497668732cefea23b6c34adcb8a3a3f..8546d4b4faca418c4e68a89909f131a908f77415 100644
(file)
--- a/
InterfaceQT4/monViewRegles.py
+++ b/
InterfaceQT4/monViewRegles.py
@@
-18,12
+18,13
@@
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
# Modules Python
# 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
import traceback
from Extensions.i18n import tr
-from PyQt
4.QtGui import *
-from PyQt
4.QtCore import *
+from PyQt
5.QtCore import Qt
+from PyQt
5.QtWidgets import QDialog, QListWidgetItem
from desViewRegles import Ui_viewRegles
# ------------------------------------ #
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)
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]
if entete != None : self.setWindowTitle (entete)
for ligne in liste :
texte=ligne[0]