From 86e0061f9cf211b98252a9e6b71d6c9801e4a16b Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期日, 18 十二月 2022 18:08:03 +0800 Subject: [PATCH] 撤单策略再次修改 --- gui.py | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/gui.py b/gui.py index 613375c..27ee994 100644 --- a/gui.py +++ b/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) -- Gitblit v1.8.0