替换tab为4个空格
This commit is contained in:
parent
a9bdeadeef
commit
83fe273188
32
README.md
32
README.md
@ -62,30 +62,30 @@ from vnpy.trader.app import riskManager, ctaStrategy
|
|||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def main():
|
def main():
|
||||||
"""主程序入口"""
|
"""主程序入口"""
|
||||||
# 创建事件引擎
|
# 创建事件引擎
|
||||||
ee = EventEngine()
|
ee = EventEngine()
|
||||||
|
|
||||||
# 创建主引擎
|
# 创建主引擎
|
||||||
me = MainEngine(ee)
|
me = MainEngine(ee)
|
||||||
|
|
||||||
# 添加交易接口
|
# 添加交易接口
|
||||||
me.addGateway(ctpGateway)
|
me.addGateway(ctpGateway)
|
||||||
|
|
||||||
# 添加上层应用
|
# 添加上层应用
|
||||||
me.addApp(riskManager)
|
me.addApp(riskManager)
|
||||||
me.addApp(ctaStrategy)
|
me.addApp(ctaStrategy)
|
||||||
|
|
||||||
# 创建主窗口
|
# 创建主窗口
|
||||||
mw = MainWindow(me, ee)
|
mw = MainWindow(me, ee)
|
||||||
mw.showMaximized()
|
mw.showMaximized()
|
||||||
|
|
||||||
# 在主线程中启动Qt事件循环
|
# 在主线程中启动Qt事件循环
|
||||||
sys.exit(qApp.exec_())
|
sys.exit(qApp.exec_())
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
```
|
```
|
||||||
|
|
||||||
更多使用方法方法请参考examples下的目录。
|
更多使用方法方法请参考examples下的目录。
|
||||||
|
Loading…
Reference in New Issue
Block a user