- message_handler.py: 重写为兼容模式,tkinter不可用时使用PyQt6 - result_widget.py: 完全重写为PyQt6版本 - models/__init__.py: 更新导出BaseModel而非Base - build.bat: 添加PyQt6的hidden-import参数 这样可以解决Windows打包时tkinter模块找不到的问题
24 lines
317 B
Python
24 lines
317 B
Python
"""
|
|
数据模型
|
|
"""
|
|
|
|
from src.models.database import (
|
|
BaseModel,
|
|
Record,
|
|
RecordCategory,
|
|
DatabaseManager,
|
|
db_manager,
|
|
init_database,
|
|
get_db,
|
|
)
|
|
|
|
__all__ = [
|
|
'BaseModel',
|
|
'Record',
|
|
'RecordCategory',
|
|
'DatabaseManager',
|
|
'db_manager',
|
|
'init_database',
|
|
'get_db',
|
|
]
|