windows任务栏图标显示为vnpy的icon
platform.uname()的返回值为元组,故修改一下if条件
This commit is contained in:
parent
6c4d62ff7c
commit
fcd9af0445
@ -15,7 +15,7 @@ def main():
|
|||||||
sys.setdefaultencoding('utf8')
|
sys.setdefaultencoding('utf8')
|
||||||
|
|
||||||
# 设置Windows底部任务栏图标
|
# 设置Windows底部任务栏图标
|
||||||
if platform.uname() == 'Windows':
|
if 'Windows' in platform.uname() :
|
||||||
ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID('vn.trader')
|
ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID('vn.trader')
|
||||||
|
|
||||||
# 初始化Qt应用对象
|
# 初始化Qt应用对象
|
||||||
|
Loading…
Reference in New Issue
Block a user