# -*- 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 PyQt4.QtGui import *
-from PyQt4.QtCore import *
+from PyQt5.QtWidgets import QLineEdit
+from PyQt5.QtCore import Qt
from Extensions.i18n import tr
-from feuille import Feuille
+from .feuille import Feuille
from desWidgetSDCOInto import Ui_WidgetSDCOInto
-from qtSaisie import SaisieSDCO
-from politiquesValidation import PolitiqueUnique
+from .qtSaisie import SaisieSDCO
+from .politiquesValidation import PolitiqueUnique
self.maCommande.listeAffichageWidget.append(self.LESDCO)
self.AAficher=self.LESDCO
self.initLBSDCO()
- self.connect(self.LESDCO, SIGNAL("returnPressed()"),self.LESDCOReturnPressed)
- self.connect(self.LBSDCO, SIGNAL("itemDoubleClicked(QListWidgetItem*)" ), self.LBSDCODoubleClicked )
+
+ self.LESDCO.returnPressed.connect(self.LESDCOReturnPressed)
+ self.LBSDCO.itemDoubleClicked.connect(self.LBSDCODoubleClicked )
def LESDCOReturnPressed(self) :
self.LBSDCO.clearSelection()
self.LBSDCO.insertItem( 1,aSDCO)
valeur = self.node.item.get_valeur()
if valeur != "" and valeur != None :
- self.LESDCO.setText(QString(valeur.nom))
+ self.LESDCO.setText(str(valeur.nom))
def LBSDCODoubleClicked(self):
self.node.item.delete_valeur_co(valeur=anc_val)
self.node.item.object.etape.get_type_produit(force=1)
self.node.item.object.etape.parent.reset_context()
- self.LESDCO.setText(QString(nomConcept))
+ self.LESDCO.setText(nomConcept)
else :
commentaire = self.node.item.get_cr()
self.reset_old_valeur(anc_val,mess=mess)