Compare commits
No commits in common. "36bf0fcf332488f0f6c67f3cac15a927b60917fa" and "69f320ec2d9b3c57bfc24b75734602885cc3d6c0" have entirely different histories.
36bf0fcf33
...
69f320ec2d
3
main.py
3
main.py
@ -276,7 +276,7 @@ def open_settings():
|
|||||||
)
|
)
|
||||||
|
|
||||||
def save_changes():
|
def save_changes():
|
||||||
entered_password = simpledialog.askstring("密码", "请输入密码:", parent=settings_window, show="*")
|
entered_password = simpledialog.askstring("密码", "请输入密码:", show="*")
|
||||||
if entered_password == PASSWORD:
|
if entered_password == PASSWORD:
|
||||||
save_settings(
|
save_settings(
|
||||||
allow_repeat_var.get(), int(min_id_var.get()), int(max_id_var.get())
|
allow_repeat_var.get(), int(min_id_var.get()), int(max_id_var.get())
|
||||||
@ -286,7 +286,6 @@ def open_settings():
|
|||||||
close_settings_window()
|
close_settings_window()
|
||||||
else:
|
else:
|
||||||
messagebox.showerror("错误", "密码错误")
|
messagebox.showerror("错误", "密码错误")
|
||||||
settings_window.focus_force()
|
|
||||||
|
|
||||||
tk.Button(settings_window, text="保存", font=("宋体", 10), command=save_changes).grid(
|
tk.Button(settings_window, text="保存", font=("宋体", 10), command=save_changes).grid(
|
||||||
row=8, column=0, columnspan=2, padx=5, pady=20, sticky="ew"
|
row=8, column=0, columnspan=2, padx=5, pady=20, sticky="ew"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user