From f0108ef8891a77884cc413f6489c5a18e7674564 Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Thu, 21 Feb 2019 22:43:55 +0800 Subject: [PATCH] [Mod]add app_name in create_qapp function --- vnpy/trader/ui/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vnpy/trader/ui/__init__.py b/vnpy/trader/ui/__init__.py index 16f6fcd1..6e194576 100644 --- a/vnpy/trader/ui/__init__.py +++ b/vnpy/trader/ui/__init__.py @@ -24,7 +24,7 @@ def excepthook(exctype, value, tb): ) -def create_qapp(): +def create_qapp(app_name: str = "VN Trader"): """ Create Qt Application. """ @@ -41,7 +41,7 @@ def create_qapp(): if "Windows" in platform.uname(): ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID( - "VN Trader" + app_name ) return qapp