From 83fe273188f2aa27b60871f94ebaf04570719c0b Mon Sep 17 00:00:00 2001 From: chenxy123 Date: Wed, 7 Jun 2017 21:20:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=BF=E6=8D=A2tab=E4=B8=BA4=E4=B8=AA?= =?UTF-8?q?=E7=A9=BA=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 460591cf..f2ba4233 100644 --- a/README.md +++ b/README.md @@ -62,30 +62,30 @@ from vnpy.trader.app import riskManager, ctaStrategy #---------------------------------------------------------------------- def main(): - """主程序入口""" - # 创建事件引擎 - ee = EventEngine() + """主程序入口""" + # 创建事件引擎 + ee = EventEngine() - # 创建主引擎 - me = MainEngine(ee) + # 创建主引擎 + me = MainEngine(ee) - # 添加交易接口 - me.addGateway(ctpGateway) + # 添加交易接口 + me.addGateway(ctpGateway) - # 添加上层应用 - me.addApp(riskManager) - me.addApp(ctaStrategy) + # 添加上层应用 + me.addApp(riskManager) + me.addApp(ctaStrategy) - # 创建主窗口 - mw = MainWindow(me, ee) - mw.showMaximized() + # 创建主窗口 + mw = MainWindow(me, ee) + mw.showMaximized() - # 在主线程中启动Qt事件循环 - sys.exit(qApp.exec_()) + # 在主线程中启动Qt事件循环 + sys.exit(qApp.exec_()) if __name__ == '__main__': - main() + main() ``` 更多使用方法方法请参考examples下的目录。