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