From f03eb72394a3fac097bb3ab1f956a83f99f7bd0e Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期四, 03 十一月 2022 17:11:37 +0800 Subject: [PATCH] 优化撤单与动态m值计算 --- gui.py | 14 +++++++++++--- 1 files changed, 11 insertions(+), 3 deletions(-) diff --git a/gui.py b/gui.py index 5192205..33d21c3 100644 --- a/gui.py +++ b/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() -- Gitblit v1.8.0