Skip to content

Commit

Permalink
style: 更正选取文件时的描述
Browse files Browse the repository at this point in the history
Merge pull request #72 from DuckDuckStudio/Issue71
  • Loading branch information
DuckDuckStudio authored Jun 25, 2024
2 parents 9c3de6b + 84fcfa3 commit a07d09b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def main():
root = tk.Tk()
root.withdraw() # 不显示主窗口

file_path = filedialog.askopenfilename(filetypes=[("HTML files", "*.html *.htm")])
file_path = filedialog.askopenfilename(filetypes=[("HTML文件", "*.html *.htm")])
if not file_path:
print("没有选择文件。")
return
Expand Down
12 changes: 6 additions & 6 deletions Tools/去除代码注释/remove_c_style_comments.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ def main():

# 弹出文件选择对话框让
file_path = filedialog.askopenfilename(filetypes=[
("C/C++/Objective-C files", "*.c *.cpp *.h *.cxx *.cc *.hpp *.m"),
("Java files", "*.java"),
("C# files", "*.cs"),
("JavaScript files", "*.js"),
("Kotlin files", "*.kt"),
("All files", "*.*")
("C/C++/Objective-C文件", "*.c *.cpp *.h *.cxx *.cc *.hpp *.m"),
("Java文件", "*.java"),
("C#文件", "*.cs"),
("JavaScript文件", "*.js"),
("Kotlin文件", "*.kt"),
("所有文件", "*.*")
])
if not file_path:
print("没有选择文件。")
Expand Down
2 changes: 1 addition & 1 deletion Tools/去除代码注释/remove_html_comments.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def main():
root = tk.Tk()
root.withdraw() # 不显示主窗口

file_path = filedialog.askopenfilename(filetypes=[("HTML files", "*.html *.htm")])
file_path = filedialog.askopenfilename(filetypes=[("HTML文件", "*.html *.htm")])
if not file_path:
print("没有选择文件。")
return
Expand Down
2 changes: 1 addition & 1 deletion Tools/去除代码注释/remove_python_comments.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def main():
root = tk.Tk()
root.withdraw() # 不显示主窗口

file_path = filedialog.askopenfilename(filetypes=[("Python files", "*.py *.pyw")])
file_path = filedialog.askopenfilename(filetypes=[("Python文件", "*.py *.pyw")])
if not file_path:
print("没有选择文件。")
return
Expand Down

0 comments on commit a07d09b

Please sign in to comment.