Administrator
2022-11-03 f03eb72394a3fac097bb3ab1f956a83f99f7bd0e
gui.py
@@ -21,7 +21,6 @@
from server import *
# 读取server进程的消息
from trade_data_manager import CodeActualPriceProcessor
@@ -305,9 +304,10 @@
            except:
                pass
            try:
                cl_price_count.configure(text="{}".format(self.codeActualPriceProcessor.get_current_price_codes_count()), foreground="#008000")
                cl_price_count.configure(
                    text="{}".format(self.codeActualPriceProcessor.get_current_price_codes_count()),
                    foreground="#008000")
            except:
                pass
@@ -460,6 +460,8 @@
                except Exception as e:
                    showerror("修复出错", str(e))
            # 创建界面
            win = Tk()
            win.title("检测结果")
@@ -484,12 +486,18 @@
            win.geometry("300x300")
            win.mainloop()
        def init():
            juejin.everyday_init()
        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)
        btn = Button(frame, text="每日初始化", command=init)
        btn.place(x=width - 250, y=5)
        btn = Button(frame, text="刷新数据", command=refresh_data)
        btn.place(x=width - 150, y=5)
        auo_refresh = IntVar()