From 209f2fcf5ff7a89338cd0272e9048888e54a0167 Mon Sep 17 00:00:00 2001 From: Renaud Barate Date: Thu, 16 Jun 2011 10:56:18 +0000 Subject: [PATCH] Fix bug with monFonctionPanel: Removed values did not appear in LineEdit --- InterfaceQT4/monFonctionPanel.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/InterfaceQT4/monFonctionPanel.py b/InterfaceQT4/monFonctionPanel.py index 4d9f2c62..5c3558fb 100644 --- a/InterfaceQT4/monFonctionPanel.py +++ b/InterfaceQT4/monFonctionPanel.py @@ -173,7 +173,9 @@ class MonFonctionPanel(MonPlusieursBasePanel): def Sup1Valeur(self): index=self.LBValeurs.currentRow() if index == None : return - self.LBValeurs.takeItem(index) + removed_item = self.LBValeurs.takeItem(index) + text = removed_item.text()[1:-1] # Remove the parenthesis + self.LEValeur.setText(text) listeVal=[] indexInterdit=[] for i in range(self.nbValeurs): -- 2.39.2