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
bugs Sophie 1
[tools/eficas.git]
/
InterfaceQT4
/
monWidgetInfo.py
diff --git
a/InterfaceQT4/monWidgetInfo.py
b/InterfaceQT4/monWidgetInfo.py
index cda3ab760ea448586ea48cb864289899d2e5d198..f46757ac5df1fa4d8cf6ed07f955b2d0ff96d95e 100644
(file)
--- a/
InterfaceQT4/monWidgetInfo.py
+++ b/
InterfaceQT4/monWidgetInfo.py
@@
-18,15
+18,15
@@
# 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
+try :
+ from builtins import str
+except : pass
+
+import types,os
# Modules Eficas
# Modules Eficas
-from determine import monEnvQT5
-if monEnvQT5 :
- from PyQt5.QtWidgets import QWidget
-else :
- from PyQt4.QtGui import *
- from PyQt4.QtCore import *
+from PyQt5.QtWidgets import QWidget
from Extensions.i18n import tr
from desWidgetInformation import Ui_WidgetInformative
from Extensions.i18n import tr
from desWidgetInformation import Ui_WidgetInformative
@@
-40,6
+40,7
@@
class MonWidgetInfo (Ui_WidgetInformative,QWidget):
self.setupUi(self)
valeur=node.item.get_valeur()
self.lineEditVal.setText(str(valeur))
self.setupUi(self)
valeur=node.item.get_valeur()
self.lineEditVal.setText(str(valeur))
+ self.lineEditVal.setReadOnly(True)
parentQt.commandesLayout.insertWidget(-1,self)
commande.listeAffichageWidget.append(self.lineEditVal)
parentQt.commandesLayout.insertWidget(-1,self)
commande.listeAffichageWidget.append(self.lineEditVal)