Administrator
2022-12-18 86e0061f9cf211b98252a9e6b71d6c9801e4a16b
gui.py
@@ -14,6 +14,7 @@
import mysql_data
import redis_manager
import server
import settings
import trade_gui
from juejin import JueJinManager
from l2_code_operate import L2CodeOperate
@@ -498,12 +499,26 @@
        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)