This repository has been archived on 2026-10-26. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
KNZ_GeoTrackLab/app/Ui_about.py
T
2024-11-04 20:56:45 +08:00

41 lines
1.2 KiB
Python

# @ File : UI_about.py
#
# Copyright (c) 2024 KenanZhu. All Right Reserved.
#
# @ Author : KenanZhu
# @ Time : 2024/11/04
# @ Brief : Help info window class.
# #
# @ IDE : PyCharm 2024.2.1 (Community Edition)
#
# ----------------------------------------------------------------------------------------
### Std
import tkinter as tk
class ABODUI:
def __init__(self, hwndparent, cfg_get, func):
# init
# -------------------------------------------------------------------------------
self.func = func
self.cfg_get = cfg_get
self.hwndparent = hwndparent
self.initGUI()
def initGUI(self):
abo = tk.Toplevel(self.hwndparent)
abo.title("About")
abo.attributes('-toolwindow', 2)
self.func.Move_center(abo, 200, 100)
abo.minsize(200, 100)
abo.maxsize(200, 100)
About = tk.Label(abo,
text="\nKNZ_GeoTrackLab %s"
"\n"
"\nCopyright (c) 2024 by KenanZhu"
"\nAll Right Reserved."
% self.cfg_get['INFO']['Version']
)
About.pack(side=tk.TOP, expand=tk.YES)