This commit is contained in:
2025-10-10 17:16:08 +08:00
parent ed947743fc
commit 062b1e24e9
281 changed files with 536 additions and 109 deletions

View File

@@ -1,22 +1,33 @@
from pathlib import Path
from threading import Lock
import atexit
base_path = Path(__file__).resolve().parent.parent.parent
db_file = base_path / "assets/database/toolbox.db"
lock = Lock()
config = None
code_dict = [4, 11, 4, 31, 22, 12, 19, 23, 7, 16, 7, 23, 1, 8, 7, 18, 27, 32, 28, 25, 7, 32, 9, 15, 2, 32, 0, 12, 26, 15, 14, 17]
username, password = "", ""
avatar = f"{base_path}/assets/media/avatar.jpg"
proverb = "佛曰Time will say~"
bg = f"{base_path}/assets/media/bg.jpg"
win_width, win_height = 1100, 500
conn, cursor = None, None
listW_items = {"实用工具": "w10_practical", "效率提升": "w20_efficiency", "财务分析": "w30_financial"}
icon = f"{base_path}/assets/media/icon.ico"
caller_frame = None
base_path = Path(__file__).resolve().parent.parent.parent
db_file = base_path / "assets/database/toolbox.db"
bg = f"{base_path}/assets/media/bg.jpg"
avatar = f"{base_path}/assets/media/avatar.jpg"
icon = f"{base_path}/assets/media/icon.ico"
logo = f"{base_path}/assets/media/logo.png"
on_icon = f"{base_path}/assets/media/switch_on.png"
off_icon = f"{base_path}/assets/media/switch_off.png"
qss_home_overlay = f"{base_path}/assets/conf/qss/home_overlay.qss"
qss_list_widget = f"{base_path}/assets/conf/qss/list_widget.qss"
qss_toolbar = f"{base_path}/assets/conf/qss/toolbar.qss"
qss_statusbar = f"{base_path}/assets/conf/qss/statusbar.qss"
qss_w08_log = f"{base_path}/assets/conf/qss/w08_log.qss"
def delete_files_in_directory(directory):
path = Path(directory)
if path.exists() and path.is_dir():