]> SALOME platform Git repositories - tools/eficas.git/blobdiff - InterfaceQT4/monWidgetInfo.py
Salome HOME
update version
[tools/eficas.git] / InterfaceQT4 / monWidgetInfo.py
index cda3ab760ea448586ea48cb864289899d2e5d198..a8f6a028452c959700b8142ab7b66577fedb574b 100644 (file)
@@ -1,5 +1,5 @@
 # -*- coding: utf-8 -*-
-# Copyright (C) 2007-2013   EDF R&D
+# Copyright (C) 2007-2021   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
+try :
+    from builtins import str
+except : pass
+
+import types,os
 
 # 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 desWidgetInformation  import Ui_WidgetInformative
 
 
 class MonWidgetInfo (Ui_WidgetInformative,QWidget):
 # c est juste la taille des differents widgets de base qui change
 
-  def __init__(self,node,monSimpDef,nom,objSimp,parentQt,commande):
+    def __init__(self,node,monSimpDef,nom,objSimp,parentQt,commande):
         QWidget.__init__(self,None)
         self.setupUi(self)
-        valeur=node.item.get_valeur()
+        valeur=node.item.getValeur()
         self.lineEditVal.setText(str(valeur))
+        self.lineEditVal.setReadOnly(True)
         parentQt.commandesLayout.insertWidget(-1,self)
 
         commande.listeAffichageWidget.append(self.lineEditVal)