windows任务栏图标显示为vnpy的icon

platform.uname()的返回值为元组,故修改一下if条件
This commit is contained in:
limingshengsh 2016-05-05 22:26:19 +08:00
parent 6c4d62ff7c
commit fcd9af0445

View File

@ -15,7 +15,7 @@ def main():
sys.setdefaultencoding('utf8')
# 设置Windows底部任务栏图标
if platform.uname() == 'Windows':
if 'Windows' in platform.uname() :
ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID('vn.trader')
# 初始化Qt应用对象