vnpy/test/trader/run.py

26 lines
521 B
Python
Raw Normal View History

from vnpy.event import EventEngine
from vnpy.trader.engine import MainEngine
from vnpy.trader.ui import MainWindow, create_qapp
from vnpy.trader.ui.widget import TickMonitor
2019-01-08 13:53:03 +00:00
def main():
""""""
qapp = create_qapp()
event_engine = EventEngine()
main_engine = MainEngine(event_engine)
main_window = MainWindow(main_engine, event_engine)
main_window.showMaximized()
monitor = TickMonitor(main_engine, event_engine)
monitor.show()
2019-01-08 13:53:03 +00:00
qapp.exec()
if __name__ == "__main__":
main()