Skip to main content

An auxiliary module of the tkinter module.

Project description

🚀tkintertools🚀

Logo

tkintertools 模块是 tkinter 模块的一个辅助模块
The tkintertools module is an auxiliary module of the tkinter module

Version License ChangeLog ToDo Size Wiki
Downloads Owner Blog Email

Insights

Install/模块安装👇

Stable Version/稳定版本

  • Version/最新版本 : 2.6.8
  • Release/发布日期 : 2023/08/03 (UTC+08)

这个是目前的最新稳定版,相对于开发版本而言比较稳定,bug 大体上是没有那么多的,推荐使用这个。稳定版和开发版相比,它在发布之前有个测试的步骤,经过测试之后(各项功能正常运行,多平台兼容)才会发布。

PIP Cmd/安装命令:

pip install tkintertools==2.6.8

Development Version/开发版本

  • Version/最新版本 : 2.6.9.dev0 (第 1 个预发布版本)
  • Release/发布日期 : 2023/08/06 (UTC+08)

这个是我正在开发的版本,可能有新功能,bug 可能会比较多,但也可能会比原来的版本更加稳定。开发版没有经过多操作系统的测试,仅能保证在 Windows 系统下运行所有功能,在其他的操作系统上,可能有部分功能无法正常运行。大家可以在 Issues 中提出一些建议,我可能会适当采纳一些并在开发版本中更改或实现。

PIP Cmd/安装命令:

pip install tkintertools==2.6.9.dev0

Warning
开发版仅作示例,各函数或类的 API 并非最终确定结果,直接使用开发版可能导致后续无法与稳定版兼容!
若不指定具体的版本号,则会下载最新的稳定版本,也就是说,开发版本只能通过指定的版本号获取!

Requirements/环境需求

目前 稳定版 在以下操作系统中已经测试通过:

Windows10 Windows11 Ubuntu22.04

可能还有其他的操作系统也是可以运行 tkintertools 的,我没有进行更多的验证。
没有任何额外的依赖包(除了一般 Python 内置的 tkinter),但只支持以下 Python 版本:

Python3.8.* Python3.9.* Python3.10.* Python3.11.* Python3.12.*

News/最新功能👇

Release Notes/版本说明

最新版本: tkintertools-v2.6.9.dev0

Note
tkintertools 的介绍、使用教程和开发文档均在 Wiki 中,大家可前往查阅

下面是本次开发版本(v2.6.8 -> v2.6.9.dev0)的更新内容条目:

  • Added widget Tip (ToolTip) and all virtual widgets added the parameter tooltip
    新增控件提示框(ToolTip),且所有虚拟控件新增参数 tooltip
  • Added constants DURATIONTOOLTIP_FGTOOLTIP_BGTOOLTIP_HIGNLIGHT_THICKNESS and TOOLTIP_HIGNLIGHT_BACKGROUND
    新增常量 DURATIONTOOLTIP_FGTOOLTIP_BGTOOLTIP_HIGNLIGHT_THICKNESSTOOLTIP_HIGNLIGHT_BACKGROUND
  • Fixed an issue where the text class widget called method clear was invalid
    修复了文本类控件调用方法 clear 无效的问题
  • Optimized the method wm_geometry of class Tk to accommodate some specially formatted parameters
    优化了类 Tk 的方法 wm_geometry 以适应某些特殊格式的参数

Template Demo/模板演示

下面是一个主要新功能的示例程序,当按照示例代码方式给虚拟控件传入一个名为 tooltip 的参数之后,便可以让这个控件拥有提示框

下面是示例程序的效果图(运行环境为 Windows11-Python3.11.4):

news

CODE/源代码
# 此处只展示核心代码

tip = tkt.ToolTip('模块介绍\nToolTip 测试')
tkt.Button(canvas, 10, 660, 200, 50, text='Doc', tooltip=tip)

More/更多👇

GitHub Gitee GitCode
GitHub Watchers GitHub Forks GitHub Stars GitHub Contributors GitHub Issues GitHub Pull Requests

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tkintertools-2.6.9.dev0.tar.gz (34.0 kB view hashes)

Uploaded Source

Built Distribution

tkintertools-2.6.9.dev0-py3-none-any.whl (32.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page