Merge pull request #62 from border/master
1. 修复IB报错 2. 修复在MAC上编码错误, 默认设置位UTF8 3. 设置底部任务栏图标只在windows显示
This commit is contained in:
commit
ff501eca46
@ -11,6 +11,7 @@ ibpy的gateway接入
|
||||
5. 海外市场的交易规则和国内有很多细节上的不同,所以一些字段类型的映射可能不合理,如果发现问题欢迎指出
|
||||
'''
|
||||
|
||||
import os
|
||||
import json
|
||||
from time import sleep, strftime, localtime
|
||||
from copy import copy
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
import sys
|
||||
import ctypes
|
||||
import platform
|
||||
|
||||
from vtEngine import MainEngine
|
||||
from uiMainWindow import *
|
||||
@ -10,8 +11,13 @@ from uiMainWindow import *
|
||||
def main():
|
||||
"""主程序入口"""
|
||||
# 设置底部任务栏图标,win7以下请注释掉
|
||||
if platform.uname() == 'Windows':
|
||||
ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID('vn.py demo')
|
||||
|
||||
# Reload sys, Set default encode to UTF8
|
||||
reload(sys)
|
||||
sys.setdefaultencoding('utf8')
|
||||
|
||||
# 初始化Qt应用对象
|
||||
app = QtGui.QApplication(sys.argv)
|
||||
app.setWindowIcon(QtGui.QIcon('vnpy.ico'))
|
||||
|
Loading…
Reference in New Issue
Block a user