fix: 移除tkinter依赖,改用PyQt6实现

- message_handler.py: 重写为兼容模式,tkinter不可用时使用PyQt6
- result_widget.py: 完全重写为PyQt6版本
- models/__init__.py: 更新导出BaseModel而非Base
- build.bat: 添加PyQt6的hidden-import参数

这样可以解决Windows打包时tkinter模块找不到的问题
This commit is contained in:
congsh
2026-02-12 11:25:14 +08:00
parent 54eeb6f522
commit a5897a1cd8
4 changed files with 536 additions and 370 deletions

View File

@@ -3,7 +3,7 @@
"""
from src.models.database import (
Base,
BaseModel,
Record,
RecordCategory,
DatabaseManager,
@@ -13,7 +13,7 @@ from src.models.database import (
)
__all__ = [
'Base',
'BaseModel',
'Record',
'RecordCategory',
'DatabaseManager',