From e8fbab872d288fa09857a63e6afdc37e64c3d2ce Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Wed, 14 Jun 2017 13:41:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DCTA=E4=B8=AD=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vnpy/trader/app/ctaStrategy/uiCtaWidget.py | 3 ++- vnpy/trader/gateway/windGateway/windGateway.py | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/vnpy/trader/app/ctaStrategy/uiCtaWidget.py b/vnpy/trader/app/ctaStrategy/uiCtaWidget.py index f1b077ae..d9e8531b 100644 --- a/vnpy/trader/app/ctaStrategy/uiCtaWidget.py +++ b/vnpy/trader/app/ctaStrategy/uiCtaWidget.py @@ -9,7 +9,8 @@ from vnpy.event import Event from vnpy.trader.vtEvent import * from vnpy.trader.uiBasicWidget import QtGui, QtCore, QtWidgets, BasicCell -from vnpy.trader.app.ctaStrategy.language import text +from .ctaBase import EVENT_CTA_LOG, EVENT_CTA_STRATEGY +from .language import text ######################################################################## diff --git a/vnpy/trader/gateway/windGateway/windGateway.py b/vnpy/trader/gateway/windGateway/windGateway.py index 279eac5c..1a872cdf 100644 --- a/vnpy/trader/gateway/windGateway/windGateway.py +++ b/vnpy/trader/gateway/windGateway/windGateway.py @@ -196,6 +196,8 @@ class WindGateway(VtGateway): if not result.ErrorCode: log.logContent = u'Wind接口连接成功' + self.connected = True + # 发出缓存的订阅请求 for req in self.subscribeBufferDict.values(): self.subscribe(req)