From fcd9af0445207fabd1f0b4a499a06b8da20671dd Mon Sep 17 00:00:00 2001 From: limingshengsh <594965527@qq.com> Date: Thu, 5 May 2016 22:26:19 +0800 Subject: [PATCH] =?UTF-8?q?windows=E4=BB=BB=E5=8A=A1=E6=A0=8F=E5=9B=BE?= =?UTF-8?q?=E6=A0=87=E6=98=BE=E7=A4=BA=E4=B8=BAvnpy=E7=9A=84icon?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit platform.uname()的返回值为元组,故修改一下if条件 --- vn.trader/vtMain.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vn.trader/vtMain.py b/vn.trader/vtMain.py index bf52abe3..a673a963 100644 --- a/vn.trader/vtMain.py +++ b/vn.trader/vtMain.py @@ -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应用对象