Skip to content

Releases: Xiaokang2022/maliang

3.1.5

27 Sep 10:43
7776e76

Choose a tag to compare

Full Commits: 3.1.4...3.1.5

Important

Starting from this version, docstrings have shifted from Markdown style to Google style
文档字符串从这个版本开始从 Markdown 风格转向 Google 风格

🟢 Added / 新增

🟣 Fixed / 修复

  • Fix typos in the parameters of some functions in submodules color.rgb and color.hsl
    修复子模块 color.rgbcolor.hsl 中一些函数的参数的错别字

  • Fixed a typo in the instance variable initial_image of the class virtual.Image
    修复了类 virtual.Image 的实例变量 initial_image 的错别字

🟤 Refactored / 重构

  • Improve code for readability and maintainability
    改善代码,提高可读性和可维护性

💥 Breaking Changes / 破坏性更改

  • Some parameter names were originally typos and have now been corrected, causing a very small portion of API incompatibility
    某些参数名原来是错别字,现在更正了,造成了极小部分 API 不兼容

3.1.4

02 Aug 03:49
6f16f59

Choose a tag to compare

Full Commits: 3.1.3...3.1.4

🔵 Optimized / 优化

  • Share the style data of the object Style, reducing memory consumption and speeding up widget building
    共享对象 Style 的样式数据,减少内存消耗并提升控件构建速度
    Issue: #129

🟤 Refactored / 重构

  • Improve code for readability and maintainability
    改善代码,提高可读性和可维护性

3.1.3

29 Jun 07:54
594b169

Choose a tag to compare

Full Commits: 3.1.2...3.1.3

🟢 Added / 新增

  • Added method exists to all widgets
    为所有控件新增了方法 exists
    Issue: #125

🟣 Fixed / 修复

  • Fixed a bug where the value of the widget SpinBox could cause unexpected results when the value was large
    修复了控件 SpinBox 在值比较大时会导致意外结果的 bug
    Issue: #122

  • Fixed a bug where the widget Canvas would be updated unexpectedly
    修复了控件 Canvas 会被意外更新的 bug
    Issue: #124

🔵 Optimized / 优化

  • Reduced the amount of memory used by the widget after calling the destroy method
    降低了控件在调用方法 destroy 后所占用的内存量

3.1.2

17 Jun 12:28
bb5f121

Choose a tag to compare

Full Commits: 3.1.1...3.1.2

🟢 Added / 新增

  • Some widgets have added the ability to automatically and dynamically update the size
    一些控件可以自动地动态更新大小
    Issue: #119 (Partially Resolved)

  • Added parameter font to function get_text_size
    函数 get_text_size 增加了参数 font

🟣 Fixed / 修复

  • Fixed a bug where the widgets Text and Image would unexpectedly modify the mouse style (3.1.1 regression)
    修复了控件 TextImage 会意外修改鼠标样式的 bug(3.1.1 回归)

3.1.1

16 Jun 11:03
8776de6

Choose a tag to compare

Full Commits: 3.1.0...3.1.1

🟢 Added / 新增

  • Keyboard Tab and Shift+Tab are supported to manipulate widgets, and Enter is used to simulate clicking on a widget with focus
    支持通过键盘 TabShift+Tab 来操控控件,并通过 Enter 来模拟点击具有焦点的控件
    Issue: #70

  • Add method region to class virtual.Widget to get the display area of the current widget
    virtual.Widget 新增方法 region 来获取当前控件的显示区域

  • Add method center to class virtual.Widget to get the center coordinates of the display area of the current widget
    virtual.Widget 新增方法 center 来获取当前控件的显示区域的中心坐标

  • Add parameter wrap_length to function utility.get_text_size
    函数 utility.get_text_size 新增参数 wrap_length

  • Improve some type hints
    完善部分类型提示

🟣 Fixed / 修复

  • Fix a bug where the widget Tooltip did not work for the widget Text and Image
    修复控件 Tooltip 无法对控件 TextImage 生效的 bug
    Issue: #77

  • Fix some incorrect type hints
    修复部分错误的类型提示

3.1.0

10 Jun 12:46
80ad07e

Choose a tag to compare

Full Commits: 3.0.5...3.1.0

🟢 Added / 新增

  • Some animation classes can take effect on multiple objects at the same time
    一些动画类可以对多个对象同时生效
    Issue: #106

  • Add method lift to class virtual.Widget
    virtual.Widget 新增方法 lift
    Issue: #116

  • Add the ability for widget Text to set the length of character wrapping
    给控件 Text 增加能够设置自动换行的字符长度的功能
    Issue: #97

  • Some functionalities for operating widgets using the keyboard have been implemented
    实现了一些使用键盘操作控件的功能
    Issue: #70 (Partially Resolved)

🟣 Fixed / 修复

  • Fix a bug that generating unexpected warnings
    修复了生成非预期警告的 bug
    Issue: #117

  • Fix an exception caused by inconsistent state parameters when updating nested widgets
    修复更新嵌套控件时状态参数不一致导致的异常
    Issue: #113

  • Fix a wrong type hint
    修复一个错误的类型提示

🔵 Optimized / 优化

  • Reduce memory usage and improve responsiveness
    降低内存使用量并提高事件响应速度

💥 Breaking Changes / 破坏性更改

  • The default value of the parameter nested for the method Widget.update has been changed from True to False
    方法 Widget.update 的参数 nested 的默认值由 True 变更为 False

3.0.5

09 May 18:54
727f775

Choose a tag to compare

Full Commits: 3.0.4...3.0.5

🔵 Optimized / 优化

  • Improve the performance of functions color.rgb.blend and color.hsl.blend
    提高了函数 color.rgb.blendcolor.hsl.blend 的性能

  • Optimize part of the import, increasing the import speed.
    优化部分导入,提高导入速度

3.0.4

09 Apr 11:14
c50644b

Choose a tag to compare

Full Commits: 3.0.3...3.0.4

🟣 Fixed / 修复

  • Fix a bug where the cursor still flashes when widget InputBox is disabled
    修复了控件 InputBox 在禁用后光标仍然闪烁的 bug
    Issue: #92

  • Fix an issue where the widget InputBox is freezing in some cases when entering text
    修复了控件 InputBox 在高度设置比较大的时候,限制文本长度将导致程序卡死的 bug
    Issue: #100

  • Fix a bug where the text of widget InputBox will extend beyond the text box
    修复了控件 InputBox 的文本会超出文本框边界的 bug
    Issue: #101

  • Partially fix a bug that cause the window to flicker when it started
    部分修复了窗口在启动时会闪烁的 bug
    Issue: #102

3.0.3

19 Mar 17:14
897c201

Choose a tag to compare

Full Commits: 3.0.2...3.0.3

🟢 Added / 新增

  • Add a read-only property children to virtual widget class Widget to access its child widgets
    增加了一个只读的属性 children 给虚拟控件类 Widget 来访问它的子控件

  • Add a basic class TkFileChooser to accommodate module tkinter
    增加了一个基础的类 TkFileChooser 来适配模块 tkinter
    Pull Request: #82 Contributor: @3190

🟣 Fixed / 修复

  • Fix the bug that the ComboBox widget can not close the selection box without selecting it after clicking to open it
    修复了控件 ComboBox 在点击打开选项列表后不选中选择框就无法关闭的 bug
    Issue: #87 Pull Request: #89 Contributor: @shu-shu-1

  • Fix some typos
    修正了一些错字

3.0.2

04 Mar 19:14
2c2c1e6

Choose a tag to compare

Full Commits: 3.0.1...3.0.2

🟣 Fixed / 修复

  • animation.animations.MoveTkWidget will produce an incorrect displacement for tkinter widgets with a parameter anchor that is not equal to "nw"
    animation.animations.MoveTkWidget 会对参数 anchor 不等于 "nw"tkinter 控件产生错误的位移
    Issue: #81