diff --git a/examples/VnTrader/run.py b/examples/VnTrader/run.py index f09170eb..24a54f97 100644 --- a/examples/VnTrader/run.py +++ b/examples/VnTrader/run.py @@ -27,7 +27,7 @@ if system == 'Linux': from vnpy.trader.gateway import xtpGateway elif system == 'Windows': from vnpy.trader.gateway import (femasGateway, xspeedGateway, - futuGateway, secGateway) + secGateway) # 加载上层应用 from vnpy.trader.app import (riskManager, ctaStrategy, spreadTrading) @@ -54,7 +54,6 @@ def main(): me.addGateway(femasGateway) me.addGateway(xspeedGateway) me.addGateway(secGateway) - me.addGateway(futuGateway) if system == 'Linux': me.addGateway(xtpGateway) diff --git a/vnpy/trader/uiQt.py b/vnpy/trader/uiQt.py index c31e2bce..6001457e 100644 --- a/vnpy/trader/uiQt.py +++ b/vnpy/trader/uiQt.py @@ -30,7 +30,7 @@ def createQApp(): if globalSetting['darkStyle']: try: import qdarkstyle - qApp.setStyleSheet(qdarkstyle.load_stylesheet(pyside=False)) + qApp.setStyleSheet(qdarkstyle.load_stylesheet_from_environment()) except ImportError: pass