Skip to content

Commit

Permalink
ADD version info
Browse files Browse the repository at this point in the history
  • Loading branch information
karminski committed Nov 26, 2024
1 parent 756ff47 commit 48729b4
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion supermicro-x-series.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
from datetime import datetime
import locale

# 在文件顶部添加版本常量
VERSION = "v0.1.1"


def is_admin():
try:
Expand Down Expand Up @@ -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(
"<Button-1>", 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)

Expand Down

0 comments on commit 48729b4

Please sign in to comment.