File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python3
2
- """
3
- ImageConverter 命令行菜单系统 v1.0
4
- 功能:提供用户友好的图像转换界面,无需修改原始转换脚本
5
- """
6
2
7
3
import os
8
4
import subprocess
9
5
import sys
10
6
from pathlib import Path
11
7
8
+ version = "1.0"
9
+
12
10
# 原始转换脚本名称
13
11
CONVERTER_SCRIPT = "image_converter.py"
14
12
@@ -34,11 +32,9 @@ def clear_screen():
34
32
def display_banner ():
35
33
"""显示程序横幅"""
36
34
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 } " )
42
38
43
39
def validate_script ():
44
40
"""验证转换脚本是否存在"""
@@ -177,7 +173,7 @@ def main_menu():
177
173
elif choice == "2" :
178
174
from_webp_menu ()
179
175
elif choice == "3" :
180
- print (f"\n { Colors .BLUE } 感谢使用ImageConverter菜单系统! { Colors .ENDC } " )
176
+ print (f"\n { Colors .BLUE } 感谢使用ImageBridge { Colors .ENDC } " )
181
177
sys .exit (0 )
182
178
else :
183
179
print (f"{ Colors .RED } 无效选择,请重新输入{ Colors .ENDC } " )
You can’t perform that action at this time.
0 commit comments