|
@@ -42,7 +42,7 @@ class ProtectorGUI(tk.Tk):
|
|
|
cf.pack(fill="x", padx=8, pady=6)
|
|
cf.pack(fill="x", padx=8, pady=6)
|
|
|
|
|
|
|
|
tk.Label(cf, text="设备地址 (base_url):").grid(row=0, column=0, sticky="w")
|
|
tk.Label(cf, text="设备地址 (base_url):").grid(row=0, column=0, sticky="w")
|
|
|
- self.base_entry = tk.Entry(cf, width=60)
|
|
|
|
|
|
|
+ self.base_entry = tk.Entry(cf, width=49)
|
|
|
self.base_entry.grid(row=0, column=1, padx=4, pady=2)
|
|
self.base_entry.grid(row=0, column=1, padx=4, pady=2)
|
|
|
|
|
|
|
|
tk.Label(cf, text="连接阈值:").grid(row=1, column=0, sticky="w")
|
|
tk.Label(cf, text="连接阈值:").grid(row=1, column=0, sticky="w")
|
|
@@ -61,7 +61,7 @@ class ProtectorGUI(tk.Tk):
|
|
|
self.interval_entry = tk.Entry(cf, width=10)
|
|
self.interval_entry = tk.Entry(cf, width=10)
|
|
|
self.interval_entry.grid(row=2, column=1, sticky="w", padx=4, pady=2)
|
|
self.interval_entry.grid(row=2, column=1, sticky="w", padx=4, pady=2)
|
|
|
|
|
|
|
|
- tk.Button(cf, text="保存配置", command=self.save_config).grid(row=3, column=1, sticky="w", pady=6)
|
|
|
|
|
|
|
+ tk.Button(cf, text="保存配置", command=self.save_config).grid(row=0, column=2, sticky="w", pady=6)
|
|
|
|
|
|
|
|
# 监控目标列表
|
|
# 监控目标列表
|
|
|
lf = tk.LabelFrame(self, text="监控目标列表")
|
|
lf = tk.LabelFrame(self, text="监控目标列表")
|