Skip to content

Commit

Permalink
GUI: too_many_keys_thersh改名为too_many_keys_thresh
Browse files Browse the repository at this point in the history
  • Loading branch information
y0umu committed Sep 18, 2021
1 parent 151a7cf commit 97c1c18
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Binary file modified screenshots/ttvduw_gui.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/ttvduw_gui_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions ttvduw_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,12 +202,12 @@ def custom_outname_window(self):
window.title('自定义输出文件名')
window.grab_set() # so that this window is modal

# 最多在图形界面上展示too_many_keys_thersh个复选框
# 最多在图形界面上展示too_many_keys_thresh个复选框
has_too_many_keys = False
too_many_keys_thersh = 20
too_many_keys_thresh = 20
label_1 = ttk.Label(
window,
text=f"你可以选择如下字段名来设置输出文件名。这里最多显示{too_many_keys_thersh}个字段"
text=f"你可以选择如下字段名来设置输出文件名。这里最多显示{too_many_keys_thresh}个字段"
)
label_1.pack()
label_2 = ttk.Label(
Expand All @@ -230,7 +230,7 @@ def custom_outname_window(self):
command=self._set_custom_keys
)
checkbox.grid(column=0, row=i, sticky=tk.W)
if i > too_many_keys_thersh:
if i > too_many_keys_thresh:
has_too_many_keys = True
break
if has_too_many_keys:
Expand Down

0 comments on commit 97c1c18

Please sign in to comment.