| | |
| | | |
| | | from server import * |
| | | |
| | | |
| | | # 读取server进程的消息 |
| | | from trade_data_manager import CodeActualPriceProcessor |
| | | |
| | |
| | | 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 |
| | | |
| | |
| | | except Exception as e: |
| | | showerror("修复出错", str(e)) |
| | | |
| | | |
| | | |
| | | # 创建界面 |
| | | win = Tk() |
| | | win.title("检测结果") |
| | |
| | | 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() |