sync 1.7
This commit is contained in:
parent
32a2a80f6f
commit
d9cd563ba4
@ -1,7 +1,7 @@
|
|||||||
# encoding: UTF-8
|
# encoding: UTF-8
|
||||||
|
|
||||||
import platform
|
import platform
|
||||||
|
import sys
|
||||||
from qtpy import QtWidgets, QtGui, QtCore
|
from qtpy import QtWidgets, QtGui, QtCore
|
||||||
|
|
||||||
from vnpy.trader.vtGlobal import globalSetting
|
from vnpy.trader.vtGlobal import globalSetting
|
||||||
@ -25,9 +25,9 @@ def createQApp():
|
|||||||
if globalSetting['darkStyle']:
|
if globalSetting['darkStyle']:
|
||||||
try:
|
try:
|
||||||
import qdarkstyle
|
import qdarkstyle
|
||||||
qApp.setStyleSheet(qdarkstyle.load_stylesheet(pyside=False))
|
qApp.setStyleSheet(qdarkstyle.load_stylesheet())
|
||||||
except ImportError:
|
except :
|
||||||
pass
|
print "Unexpected error:", sys.exc_info()[0]
|
||||||
|
|
||||||
# 设置Windows底部任务栏图标
|
# 设置Windows底部任务栏图标
|
||||||
if 'Windows' in platform.uname():
|
if 'Windows' in platform.uname():
|
||||||
|
Loading…
Reference in New Issue
Block a user