Tip
此更新日志有以下 7 中类型的更新内容,分别用 7 中不同颜色来表示
- 🟢 新增
- 🔴 移除
- 🟡 变更
- 🔵 优化
- 🟣 修复
- 🟠 弃用
- 🟤 重构
🕓 发布日期 : 2024-08-09
🟢 新增
-
为
base.py
新增Window
类 -
为
Window
类添加place
title
titlebar
position
size
alpha
transparent
transparentcolor
方法 -
为
tools.py
添加create_image
interpolate_color
函数 -
为
graphics.py
新增TopRoundedRectangle
RoundedButton
类 -
为
graphics.py
中的Rectangle
类添加alpha
参数 -
为
widgets.py
新增Menu
类
🟡 变更
- 将
Rectangle
中的create_rectangle
部分移到if
判断中,为适应alpha
参数
🕓 发布日期 : 2024-08-01
🟢 新增
-
为
graphics.py
中的RoundedRectangle
类新增bind
方法 -
为
graphics.py
中的Text
类新增错误检测 -
添加
tools.py
-
为
tools.py
新增rgb_to_hex
hex_to_rgb
函数 -
为
widgets.py
新增RoundedButton
类
🕓 发布日期 : 2024-07-22
🟢 新增
-
为
graphics.py
中的Rectangle
类新增_position
_size
_bg
方法 -
为
graphics.py
中的Text
类新增_usable
_fg
方法 -
为
widgets.py
中的Button
类中的__start_click
方法中的itemconfigure
添加outline
参数 -
为
widgets.py
添加BaseWidget
类 -
为
widgets.py
中的BaseWidget
类添加darken_color
方法 -
为
widgets.py
中的BaseWidget
类添加config
create_shadow
预设方法 -
为
widgets.py
中的Button
类覆写config
create_shadow
方法 -
为
widgets.py
中的Label
类覆写config
方法
🟡 变更
-
将
graphics.py
中的类名称都改为PEP 8
格式的单词首字母大写 -
将
graphics.py
中的Text
类中的placemode
改为self.placemode
-
将
graphics.py
中的Text
类中的coords
改为调用_usable
方法 -
将
graphics.py
中的Text
类中的position
方法改为_position
-
将
widgets.py
中的Button
类中的__start_click
方法中的darkenColor
改为darken_color
🕓 发布日期 : 2024-06-20
🟢 新增
-
为
graphics.py
添加text
类 -
为
graphics.py
中的text
类添加position
方法 -
为
widgets.py
中的Button
类添加一些赋值和基本绑定 -
为
widgets.py
中的Button
类添加__start_click
__end_click
方法
🕓 发布日期 : 2024-06-20
🟢 新增
-
为
graphics.py
添加rectangle
perfectCircle
ellipse
roundedRectangle
类 -
为
graphics.py
所有的类都添加canvasId
属性 -
添加
test.py
🕓 发布日期 : 2024-06-20
🟢 新增
- 添加
__init__.py
base.py
graphics.py
widgets.py