Skip to content

Commit 81e8610

Browse files
committed
更新主程序
1 parent bb59f15 commit 81e8610

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

Main.py

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
#!/usr/bin/env python3
2-
"""
3-
ImageConverter 命令行菜单系统 v1.0
4-
功能:提供用户友好的图像转换界面,无需修改原始转换脚本
5-
"""
62

73
import os
84
import subprocess
95
import sys
106
from pathlib import Path
117

8+
version = "1.0"
9+
1210
# 原始转换脚本名称
1311
CONVERTER_SCRIPT = "image_converter.py"
1412

@@ -34,11 +32,9 @@ def clear_screen():
3432
def display_banner():
3533
"""显示程序横幅"""
3634
print(f"{Colors.BLUE}{'=' * 60}")
37-
print(f"{Colors.BOLD}ImageConverter 命令行菜单系统 v1.0{Colors.ENDC}")
38-
print(f"{'=' * 60}{Colors.ENDC}")
39-
print(f"{Colors.CYAN}此菜单系统提供对 {CONVERTER_SCRIPT} 的友好访问")
40-
print(f"无需修改原始转换脚本{Colors.ENDC}\n")
41-
35+
print(f"{Colors.BOLD}ImageBridge v{version}{Colors.ENDC}")
36+
print(f"{Colors.BOLD}https://github.com/YanYiGe2023/ImageBridge{Colors.ENDC}")
37+
print(f"{Colors.BLUE}{'=' * 60}")
4238

4339
def validate_script():
4440
"""验证转换脚本是否存在"""
@@ -177,7 +173,7 @@ def main_menu():
177173
elif choice == "2":
178174
from_webp_menu()
179175
elif choice == "3":
180-
print(f"\n{Colors.BLUE}感谢使用ImageConverter菜单系统!{Colors.ENDC}")
176+
print(f"\n{Colors.BLUE}感谢使用ImageBridge{Colors.ENDC}")
181177
sys.exit(0)
182178
else:
183179
print(f"{Colors.RED}无效选择,请重新输入{Colors.ENDC}")

0 commit comments

Comments
 (0)