From: barate Date: Fri, 22 Apr 2011 14:03:04 +0000 (+0000) Subject: Changed selectvars GUI according to changes in KERNEL X-Git-Tag: V6_3_0b1~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5a0c46be8b5064c41a80ab758272a64eb20c2bd2;p=modules%2Fgui.git Changed selectvars GUI according to changes in KERNEL --- diff --git a/src/GUI_PY/selectvars.py b/src/GUI_PY/selectvars.py index 5dfe731e4..86c801b42 100644 --- a/src/GUI_PY/selectvars.py +++ b/src/GUI_PY/selectvars.py @@ -25,7 +25,7 @@ from PyQt4.QtCore import Qt import salome from salome.kernel.studyedit import getStudyEditor -from salome.kernel import varlist +from salome.kernel.parametric import study_exchange_vars # ---------------------------------- # # Dialog box for variables selection # @@ -71,7 +71,7 @@ class MySelectVarsDialog(Ui_SelectVarsDialog, QtGui.QDialog): QtGui.QMessageBox.warning(self, self.tr("Error"), self.tr('No item at entry %s' % entry)) return - exchangeVariables = varlist.getExchangeVariablesFromSObject(sobj) + exchangeVariables = study_exchange_vars.getExchangeVariablesFromSObject(sobj) if exchangeVariables is None: QtGui.QMessageBox.warning(self, self.tr("Error"), self.tr('Item at entry %s is not a valid ' @@ -114,7 +114,9 @@ class MySelectVarsDialog(Ui_SelectVarsDialog, QtGui.QDialog): inputVarList = [] outputVarList = [] for row in range(self.selectedInputVarListWidget.count()): - inputVarList.append(varlist.Variable(str(self.selectedInputVarListWidget.item(row).text()))) + name = str(self.selectedInputVarListWidget.item(row).text()) + inputVarList.append(study_exchange_vars.Variable(name)) for row in range(self.selectedOutputVarListWidget.count()): - outputVarList.append(varlist.Variable(str(self.selectedOutputVarListWidget.item(row).text()))) - return varlist.ExchangeVariables(inputVarList, outputVarList, self.refEntry) + name = str(self.selectedOutputVarListWidget.item(row).text()) + outputVarList.append(study_exchange_vars.Variable(name)) + return study_exchange_vars.ExchangeVariables(inputVarList, outputVarList, self.refEntry)