更新日志
字数 2 个 阅读时间不到 1 分钟 访问量
Tip
This changelog has the following 7 types of updates, each of which is represented by 7 different colors 此更新日志有以下 7 种类型的更新内容,分别用 7 种不同颜色来表示
- 🟢 Added / 新增
- 🔴 Removed / 移除
- 🟡 Changed / 变更
- 🔵 Optimized / 优化
- 🟣 Fixed / 修复
- 🟠 Deprecated / 弃用
- 🟤 Refactored / 重构
🔖 0.0.6.post1¶
🕓 Release Date / 发布日期 : 2026-9-7
🟣 Fixed / 修复
-
Make
main.pyrunnable as a bare script without relying on the installedHDpipdistribution (all fallback imports now point to the local modules); this also fixes the EndCanvas relaunch and the error-dialog startup. -
修复直接以脚本方式运行
main.py依赖已安装HDpip包的问题(兜底导入现指向本地模块),同步修复欢迎页结束后的进程重启与错误对话框启动。 -
Fix the error dialog that referenced the removed
gui/base.pymodule. -
修复错误对话框引用已删除的
gui/base.py模块的问题。 -
Fix duplicated top-level
coreandHDpip.coremodule loading insidegui/custom/containers.py. -
修复
gui/custom/containers.py中顶层core与HDpip.core两份模块同时加载的问题。 -
Restore language-change notifications for canvases created earlier, which were lost whenever a later container rebuilt the
languagedata object. -
修复后创建的容器重建
language数据对象导致先前画布收不到语言变更事件的问题。
🟤 Refactored / 重构
-
Move package metadata (
version/author/copyright) out ofHDpip/__init__.pyinto the dedicatedHDpip/info.pymodule. -
将包元数据(
version/author/copyright)从HDpip/__init__.py抽离至独立的HDpip/info.py模块。 -
All canvases and windows now share one
core.data.data_managerinstance by default, andDataManager.init()no longer rebuilds in-memory data on re-entry. -
所有画布与窗口默认共用同一个
core.data.data_manager实例,且DataManager.init()重复调用不再重建内存数据。
🔖 0.0.6¶
🕓 Release Date / 发布日期 : 2026-8-24
Danger
HDpip/gui has been fully restructured into the gui/custom subpackage, please pay attention to the changes in function calls. 我们已对 HDpip/gui 进行了全面重构,拆分为 gui/custom 子包,请注意调用变动。 HDpip/gui/custom/utility has been renamed to HDpip/gui/custom/util, the old import is no longer available. HDpip/gui/custom/utility 已重命名为 HDpip/gui/custom/util,旧引用已不可用。
🟢 Added / 新增
-
Add the abstract container classes
Tk/Toplevel/Canvasundergui/custom/containers. -
新增
gui/custom/containers抽象容器类(Tk/Toplevel/Canvas)。 -
Add the
enableTempTkdecorator incore/util.py. -
新增
core/util.py中的enableTempTk装饰器。
🟤 Refactored / 重构
-
Split
gui/base.pyinto thegui/customsubpackage with thecolor/util/widgets/texts/animations/shapes/media/containersmodules. -
将
gui/base.py拆分为gui/custom子包,包含color、util、widgets、texts、animations、shapes、media、containers模块。 -
All canvases and windows in
welcome.py/main.pynow inherit from thegui/custom/containersclasses, unifying language events and window customization. -
welcome.py与main.py的所有画布与窗口全面继承gui/custom/containers容器类,统一语言事件与窗口定制。 -
Integrate
ButtonandIconButtonwith icon placement, theme coloring and disabled variants. -
整合
Button与IconButton,支持图标放置、主题着色与禁用变体。 -
Remove all
:param self:annotations from docstrings. -
清理了所有文档字符串中的
:param self:注释。
🟡 Changed / 变更
-
Rename
gui/custom/utility.pytoutil.pyand unify all text files to CRLF line endings. -
将
gui/custom/utility.py重命名为util.py,并统一所有文本文件为 CRLF 行尾。
🟣 Fixed / 修复
-
Fix the container icon loading timing and the button icon color after disabling.
-
修复容器图标加载时序与按钮禁用后图标颜色。
-
Fix the undefined
_Wrappedtype annotation ingui/error_catcher.py. -
修复
gui/error_catcher.py中未定义的_Wrapped类型注解。
🔖 0.0.5.post1¶
🕓 Release Date / 发布日期 : 2026-8-7
🟢 Added / 新增
-
Add
darkdetectas an explicit dependency. -
将
darkdetect添加为显式依赖。
🟡 Changed / 变更
-
Read the package version dynamically from
HDpip.versioninpyproject.toml, keeping a single source of truth. -
pyproject.toml中的版本号改为从HDpip.version动态读取,保持单一版本来源。
🔖 0.0.5¶
🕓 Release Date / 发布日期 : 2026-8-7
Important
We will refactor HDpip/gui in the next version, please pay attention to the changes in function calls. 我们将在下一个版本全面重构HDpip/gui,请注意调用变动。
Danger
We have completely refactored HDpip/base.py, and the call to HDpip.base is no longer available, please import from HDpip.core.util, HDpip.core.system, and HDpip.core.data instead. 我们对HDpip/base.py进行了全面重构,HDpip.base的调用已不可用,请改为从HDpip.core.util、HDpip.core.system、HDpip.core.data中导入。
🟢 Added / 新增
-
Add the documentation site: handongliren.github.io/HDpip/
-
Add smart scale function, which can automatically scale the size of the interface according to the screen resolution.
-
新增了智能缩放功能,可以根据屏幕分辨率自动缩放界面大小。
-
Add the formal pytest test suite and
@override/@overloaddecorators across the codebase. -
新增了正式的 pytest 测试套件,并在全项目使用
@override/@overload装饰器。
🟤 Refactored / 重构
-
Split
core/base.pyintocore/util.py,core/system.pyandcore/data.py, and remove the_BaseProxycompatibility layer. -
将
core/base.py拆分为core/util.py、core/system.py和core/data.py三个模块,并移除了_BaseProxy兼容代理。 -
Switch the table widget from the self-wrapped
Treeviewtomaliang.table.TkTable(tksheet). -
表格控件由自封装的
Treeview切换为maliang.table.TkTable(tksheet)。
🟡 Changed / 变更
-
Apply
smartScale(ss) to all UI dimensions across all interfaces, and update module attribution ofshell/Version. -
在所有界面全面运用
smartScale(ss)缩放,并调整了shell/Version的模块归属。
🔵 Optimized / 优化
-
Clean trailing whitespace and consecutive blank lines across the repository.
-
清理了全仓库的行尾空格和连续空行。
🟣 Fixed / 修复
-
Fix the DPI test failure caused by the module-level cache bypassing
monkeypatch, and a pre-existingSyntaxErroringui/base.py. -
修复了 DPI 测试因模块级缓存绕过
monkeypatch而失败的问题,以及gui/base.py中预存的语法错误。