提交 294a5807 编写于 作者: 小康2022

version 2.6.4

上级 4c0c2bae
ChangeLog/更新日志
=================
[2.6.4-dev] - 2023-06-11
[2.6.4] - 2023-06-12
--------------------
### Features/新增
- [X] The class `tool_3d` submodule `Canvas_3D` has added the function `pos_sort` to calculate and sort the actual position of space to support the correct display of geometry colors
`tool_3d`子模块的类`Canvas_3D`新增对空间实际位置进行计算和排序的函数`pos_sort`,以支持几何体颜色的正确显示
- [X] The class `tool_3d` submodule `Canvas_3D` has added the function `space_sort` to calculate and sort the actual position of space to support the correct display of geometry colors
`tool_3d`子模块的类`Canvas_3D`新增对空间实际位置进行计算和排序的函数`space_sort`,以支持几何体颜色的正确显示
### Fixed/修复
......@@ -475,4 +475,10 @@ ChangeLog/更新日志
[2.5.0] - 2022-11-21
--------------------
- [X] No more logging
- [X] No more logging
没有更多日志了
--------------------
TIP: Since I didn't get into the habit of logging before, there are no more logs, but fortunately the version number is inherited ಥ_ಥ
提示: 由于我以前没有养成记录日志的习惯,故没有更多的日志了,好在版本号继承了下来 ಥ_ಥ
<div align="center">
<h1>🚀tkintertools🚀</h1>
<p><img height="120px" alt="logo.png"
src="tkintertools.png" />
<p><img height="120px" alt="logo.png" src="tkintertools.png" /></p>
<p>
The <code>tkintertools</code> module is an auxiliary module of the <code>tkinter</code> module
<br />
<code>tkintertools</code> 模块是 <code>tkinter</code> 模块的辅助模块
</p>
<p>The <code>tkintertools</code> module is an auxiliary module of the <code>tkinter</code> module</p>
<p><code>tkintertools</code> 模块是 <code>tkinter</code> 模块的辅助模块</p>
<p>
<a href="tkintertools/__init__.py">
<img src="https://img.shields.io/badge/Version-2.6.4(dev)-blue" alt="latest version" />
<img src="https://img.shields.io/badge/Version-2.6.4-blue" alt="latest version" />
</a>
<a href="LICENSE">
<img src="https://img.shields.io/badge/License-Mulan PSL v2-green" alt="License" />
</a>
<a href="CHANGELOG.md">
<img src="https://img.shields.io/badge/ChangeLog-2023/06/11-orange" alt="ChangeLog" />
<img src="https://img.shields.io/badge/ChangeLog-2023/06/12-orange" alt="ChangeLog" />
</a>
<a href="TODO.md">
<img src="https://img.shields.io/badge/ToDos-14-yellow" alt="ToDos" />
<img src="https://img.shields.io/badge/ToDo-15-yellow?logo=cachet" alt="ToDos" />
</a>
<a href="https://pypistats.org/packages/tkintertools">
<img src="https://img.shields.io/badge/Downloads-4k-purple" alt="Downloads" />
<img src="https://img.shields.io/badge/Download-4k-purple?logo=pypi" alt="Downloads" />
</a>
</p>
<p>
<br />
<a href="mailto:2951256653@qq.com">
<img src="https://img.shields.io/badge/Email-2951256653@qq.com-cyan" alt="Email" />
</a>
<a href="https://xiaokang2022.blog.csdn.net">
<img src="https://img.shields.io/badge/Blog-小康2022@CSDN-red" alt="Blog" />
</a>
<a href="https://github.com/Xiaokang2022">
<img src="https://img.shields.io/badge/Author-小康2022-white" alt="Author" />
</a>
<a href="https://xiaokang2022.blog.csdn.net">
<img src="https://img.shields.io/badge/Blog-小康2022@CSDN-red" alt="Blog" />
</a>
</p>
</div>
......@@ -40,36 +40,47 @@ Installation/模块安装
### Stable version/稳定版本
* Version/版本 : 2.6.3
* Release Date/发布日期 : 2023/06/07
```
pip install tkintertools==2.6.3
或者
pip install tkintertools
```
* Version/版本 : 2.6.4
* Release Date/发布日期 : 2023/06/12
这个是目前的最新稳定版,比较稳定,bug (可能)没有那么多,推荐使用这个。
关于稳定版有 Issue 的话,我会去查看并尝试解决 Issue。
```
pip install tkintertools==2.6.4
```
### Development version/开发版本
* Version/版本 : 2.6.4
* Release Date/发布日期 : 2023/06/11
这个是我正在开发的版本,可能有新功能,bug 也可能会比较多,但也可能会比原来的版本更加稳定。
大家可以在 Issue 中提出一些建议,我会适当采纳一些并在开发版本中更改或实现。
```
pip install tkintertools-dev==2.6.4
或者
pip install tkintertools-dev
```
这个是我正在开发的版本,可能有新功能,bug 也可能会比较多,但也可能会比原来的版本更加稳定。
大家可以在 Issue 中提出一些建议,我会适当采纳一些并在开发版本中更改或实现。
**特别注意**
* 开发版仅作示例,各函数或类的API并非最终确定结果,直接使用开发版可能导致后续无法与正式版兼容!
* 若要使用开发版,请先卸载正式版后再进行pip安装,再次使用正式版时也是一样,先卸载开发版再安装正式版!
* 需要 **Python3.8** 及更高版本才能运行 tkintertools!
### Environmental requirements/环境需求
没有任何额外的依赖包(除了tkinter),但只支持以下 Python 版本:
![Python3.8](https://img.shields.io/badge/Python-3.8.*-blue?logo=python)
![Python3.9](https://img.shields.io/badge/Python-3.9.*-blue?logo=python)
![Python3.10](https://img.shields.io/badge/Python-3.10.*-blue?logo=python)
![Python3.11](https://img.shields.io/badge/Python-3.11.*-blue?logo=python)
![Python3.12](https://img.shields.io/badge/Python-3.12.*-blue?logo=python)
可能在某些操作系统上也可运行,但目前以下操作系统已经测试通过:
![Windows10](https://img.shields.io/badge/Windows-10-green?logo=windows)
![Windows11](https://img.shields.io/badge/Windows-11-green?logo=windows11)
![Ubuntu22.04](https://img.shields.io/badge/Ubuntu-22.04-green?logo=ubuntu)
<a name="news">News/最新功能</a>
------------
......
......@@ -42,3 +42,6 @@ TODO/待办
14. [ ] Fixed a bug where objects in the 3D submodule were displayed incorrectly when they exceeded the display range of the screen
解决3D子模块中对象超过画面显示范围时显示错误的bug
15. [ ] The position relationship between the space before and after the 3D object is still problematic at some point
3D对象前后空间的位置关系在某些时候仍有问题
readme_res/test_windows11.png

36.3 KB | W: | H:

readme_res/test_windows11.png

44.8 KB | W: | H:

readme_res/test_windows11.png
readme_res/test_windows11.png
readme_res/test_windows11.png
readme_res/test_windows11.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -12,7 +12,7 @@ Provides
* Gradient colors and contrast colors
* Text with controllable length and alignment
* Convenient, inheritable singleton pattern class
* Display clear window and its contents
* 3D drawing
Contents
--------
......@@ -20,18 +20,19 @@ Contents
* Virtual Canvas Widgets: `Label`, `Button`, `CheckButton`, `Entry`, `Text`, `Progressbar`
* Tool Classes: `PhotoImage`, `Singleton`
* Tool Functions: `move`, `text`, `color`, `askfont`, `SetProcessDpiAwareness`
* Tool Submodules: `tool_3d`
More
----
* GitCode: https://gitcode.net/weixin_62651706/tkintertools
* GitHub(Mirror): https://github.com/XiaoKang2022-CSDN/tkintertools
* Tutorials: https://xiaokang2022.blog.csdn.net/article/details/127374661
* GitHub: https://github.com/Xiaokang2022/tkintertools
* Gitee(Mirror): https://gitee.com/xiaokang-2022/tkintertools
* GitCode(Mirror): https://gitcode.net/weixin_62651706/tkintertools
"""
import sys
if sys.version_info < (3, 8): # Version Check
error_info = '\n\033[31mOperation Requirements: \033[32m\nPython version shall not be less than\033[33m 3.7.0 !\033[0m'
error_info = '\n\033[31mOperation Requirements: \033[32m\nPython version shall not be less than\033[33m 3.8 !\033[0m'
raise RuntimeError(error_info)
from .__main__ import (Button, Canvas, CheckButton, Entry, Label, PhotoImage,
......
......@@ -24,7 +24,7 @@ def translate(coords, dx=0, dy=0, dz=0):
coords[2] += dz
def rotate(coords, dx=1, dy=1, dz=1, *, center=[0, 0, 0]):
def rotate(coords, dx=0, dy=0, dz=0, *, center=[0, 0, 0]):
# type: (list[float], float, float, float, ..., Iterable[float]) -> None
"""
### 旋转
......@@ -133,10 +133,10 @@ class _Point():
""" 平移 """
translate(self.coords, dx, dy, dz)
def rotate(self, dx=1, dy=1, dz=1, *, center=[0, 0, 0]):
# type: (float, float, float, ..., Iterable[float]) -> None
def rotate(self, dx=0, dy=0, dz=0, *, center=[0, 0, 0], axes=None, delta=0):
# type: (float, float, float, ..., Iterable[float], Line | None, float) -> None
""" 旋转 """
rotate(self.coords, dx, dy, dz, center=center)
rotate(self.coords, dx, dy, dz, center=center, axes=axes, delta=delta)
def scale(self, kx=1, ky=1, kz=1, *, center=None):
# type: (float, float, float, ..., Iterable[float] | None) -> None
......@@ -168,7 +168,7 @@ class _Line:
for coord in self.coords:
translate(coord, dx, dy, dz)
def rotate(self, dx=1, dy=1, dz=1, *, center=[0, 0, 0]):
def rotate(self, dx=0, dy=0, dz=0, *, center=[0, 0, 0]):
# type: (float, float, float, ..., Iterable[float]) -> None
""" 旋转 """
for coord in self.coords:
......@@ -200,7 +200,7 @@ class _Side:
for coord in self.coords:
translate(coord, dx, dy, dz)
def rotate(self, dx=1, dy=1, dz=1, *, center=[0, 0, 0]):
def rotate(self, dx=0, dy=0, dz=0, *, center=[0, 0, 0]):
# type: (float, float, float, ..., Iterable[float]) -> None
""" 旋转 """
for coord in self.coords:
......@@ -381,9 +381,9 @@ class Geometry:
# type: (float, float, float, ..., Iterable[float]) -> None
"""
旋转\n
`dx`: 绕x轴方向旋转\n
`dy`: 绕y轴方向旋转\n
`dz`: 绕z轴方向旋转\n
`dx`: 绕x轴方向旋转\n
`dy`: 绕y轴方向旋转\n
`dz`: 绕z轴方向旋转\n
`center`: 旋转中心\n
"""
coords = [coord for side in self.sides for coord in side.coords]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册