diff --git a/supermicro-x-series.py b/supermicro-x-series.py index d15b819..152b32e 100644 --- a/supermicro-x-series.py +++ b/supermicro-x-series.py @@ -7,6 +7,9 @@ from datetime import datetime import locale +# 在文件顶部添加版本常量 +VERSION = "v0.1.1" + def is_admin(): try: @@ -313,7 +316,15 @@ def __init__(self, root): credits_frame = tk.Frame(root) credits_frame.pack(fill="x", padx=10, pady=5) - # Add elements from right to left + # Add version label with link (修改) + version_label = tk.Label( + credits_frame, text=f"{VERSION}", fg="blue", cursor="hand2" + ) + version_label.pack(side=tk.RIGHT) + version_label.bind( + "", lambda e: self.open_url("https://github.com/KCORES/fan-lord") + ) + project_suffix = tk.Label(credits_frame, text=" opensource project") project_suffix.pack(side=tk.RIGHT)