[Mod]add app_name in create_qapp function

This commit is contained in:
vn.py 2019-02-21 22:43:55 +08:00
parent a203f864c4
commit f0108ef889

View File

@ -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