# -*- 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
+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
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)