| | |
| | | import mysql_data |
| | | import redis_manager |
| | | import server |
| | | import settings |
| | | import trade_gui |
| | | from juejin import JueJinManager |
| | | from l2_code_operate import L2CodeOperate |
| | |
| | | def init(): |
| | | juejin.everyday_init() |
| | | |
| | | def set_accept_l2(): |
| | | settings.set_accept_l2(accept_l2.get()) |
| | | |
| | | |
| | | width = 800 |
| | | height = 290 |
| | | frame = Frame(root, {"height": height, "width": width, "bg": "#DDDDDD"}) |
| | | cl = Label(frame, text="L2采集状态", bg="#DDDDDD") |
| | | cl.place(x=5, y=5) |
| | | |
| | | accept_l2 = IntVar() |
| | | ch_accept_l2 = Checkbutton(frame, text='接受l2数据', variable=accept_l2, onvalue=1, offvalue=0, background="#DDDDDD",activebackground="#DDDDDD",command=set_accept_l2) |
| | | ch_accept_l2.place(x=width - 350, y=5) |
| | | if settings.is_accept_l2_data(): |
| | | accept_l2.set(1) |
| | | else: |
| | | accept_l2.set(0) |
| | | |
| | | |
| | | |
| | | btn = Button(frame, text="每日初始化", command=init) |
| | | btn.place(x=width - 250, y=5) |
| | | |