From: pascale.noyret Date: Thu, 6 Apr 2017 13:43:42 +0000 (+0200) Subject: warning pour la virgule" X-Git-Tag: Salome_8_3_Hydro_2_0rc1~70 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8a348f43f203b5791ae4e2e7bbe94709f40b9536;p=modules%2Feficas.git warning pour la virgule" --- diff --git a/InterfaceQT4/monWidgetPlusieursBase.py b/InterfaceQT4/monWidgetPlusieursBase.py index 5e4390c7..05c89d3a 100644 --- a/InterfaceQT4/monWidgetPlusieursBase.py +++ b/InterfaceQT4/monWidgetPlusieursBase.py @@ -29,7 +29,7 @@ import types,os,sys from six.moves import range from PyQt5.QtGui import QIcon -from PyQt5.QtWidgets import QApplication +from PyQt5.QtWidgets import QApplication, QMessageBox from PyQt5.QtCore import QTimer, QSize, Qt # Modules Eficas @@ -219,6 +219,15 @@ class MonWidgetPlusieursBase (Ui_WidgetPlusieursBase,Feuille,GereListe,GerePlie) valeur=courant.text() lval=valeur.split(',') if len (lval) > 1 : + msgBox=QMessageBox() + msgBox.setText("separator ',' ") + msgBox.setInformativeText("Do you want to enter " + str (lval) + "?") + msgBox.setStandardButtons( QMessageBox.Ok | QMessageBox.Cancel) + msgBox.setDefaultButton(QMessageBox.Ok) + ret = msgBox.exec_() + if ret != 1024 : + courant.setText("") + return courant.setText(lval[0]) self.ajoutNValeur(lval[1:]) self.listeValeursCourantes = [] @@ -261,7 +270,5 @@ class MonWidgetPlusieursBase (Ui_WidgetPlusieursBase,Feuille,GereListe,GerePlie) self.reaffiche() - def entreListe(self,listeDeValeur,index): - self.entreListe(lval, i) # Avertissement quand on quitte le widget