From 252e78996cf7a049fce9b2eaa21ba59e676d6327 Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Sun, 10 Jun 2018 21:13:21 +0800 Subject: [PATCH] =?UTF-8?q?[Mod]AlgoSettingMonitor=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E6=9B=B4=E6=96=B0templateName?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vnpy/trader/app/algoTrading/uiAlgoManager.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vnpy/trader/app/algoTrading/uiAlgoManager.py b/vnpy/trader/app/algoTrading/uiAlgoManager.py index fa92fae3..0ab47ebf 100644 --- a/vnpy/trader/app/algoTrading/uiAlgoManager.py +++ b/vnpy/trader/app/algoTrading/uiAlgoManager.py @@ -342,6 +342,7 @@ class AlgoSettingMonitor(QtWidgets.QTableWidget): self.cellDict[settingName] = { 'start': buttonStart, + 'template': cellTemplateName, 'text': cellSettingText, 'delete': buttonDelete } @@ -349,6 +350,7 @@ class AlgoSettingMonitor(QtWidgets.QTableWidget): else: d = self.cellDict[settingName] d['start'].updateSetting(setting) + d['template'].setText(setting['templateName']) d['text'].setText(self.generateText(setting)) d['delete'].updateSetting(setting)