Skip to main content

Tkinter的扩展包

Project description

👋 介绍

这是 Tkinter 的一个扩展包,在不更改原有框架的前提下增加了一些新功能。

扩展包继承了原有 Tkinter 的所有功能,无需修改大量现有代码,可以在已有项目的基础上直接使用。


✨ 包含功能

Tk 相关

  • winfo_geometry 函数:窗口居中
  • dpi_fix 函数:DPI 修复(Windows 独有)

⚠ 重要说明

DPI 修复是 Windows 的独有功能,用于解决不同 DPI 下控件错位的问题。
其他系统暂未发现此问题,因此在该功能在其他系统上不会生效。

Toplevel 相关

  • winfo_geometry 函数:窗口居中
  • set_master_window 函数:将窗口设为模态窗口(相当于弹窗)

特色扩展功能

  • opennewwindow 装饰器:修复模态化窗口失效问题

📦 开始使用

该模块提供多种安装方式,可根据需要选择。一般情况下,建议使用第一种方法,这种方法版本稳定。

🤔 问题:我该选择哪个下载方法?

一般情况下,请使用第一种方法安装本模块,第一种方法发布的模块较为稳定。
如果下载时速度太慢,建议你使用国内镜像加速,如清华源

如果你希望获取测试版本,但是打不开Github,请访问Codeberg仓库。

  1. (稳定版) 打开电脑终端,执行下面命令:

    pip install tkextra
    
  2. (稳定版&预览版) 打开本项目的 Github 或者 Codeberg 仓库,获取最新的Res,下载 .whl 文件,运行下面命令:

    pip install tkextra-xxxxxx.whl 
    
  3. (预览版) 打开本项目的 Github 或者 Codeberg 仓库,执行:

    # 如果是Github,执行:
    git clone https://github.com/Aarondongsq/tkextra.git
    # 如果是Codeberg,执行:
    git clone https://codeberg.org/Aarondongsq/tkextra.git
    
    cd tkextra
    python setup.py install
    

⚖ 许可证

本项目按照 LGPL V3 许可开源。
本项目所有插画均受 CC BY-SA 保护。

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

tkextra-0.6.5.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tkextra-0.6.5-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file tkextra-0.6.5.tar.gz.

File metadata

  • Download URL: tkextra-0.6.5.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for tkextra-0.6.5.tar.gz
Algorithm Hash digest
SHA256 03a5907343b138ac9ba1a41c3c3f1807d97b3830a2ec7c760b8760d95fc1fdc8
MD5 8b4be60498a09b2ae5673283b1fe9ab4
BLAKE2b-256 959918409d8c38d2ce21fc29136faaedbb33c6b22a89cbb10ead9ccd04e7cf53

See more details on using hashes here.

File details

Details for the file tkextra-0.6.5-py3-none-any.whl.

File metadata

  • Download URL: tkextra-0.6.5-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for tkextra-0.6.5-py3-none-any.whl
Algorithm Hash digest
SHA256 99223cd0d9e1862293213ea16bf852bf2abce8c95d15ea00f1271898971b8c38
MD5 ae48412109e4aaa7f9c6f2835b23b634
BLAKE2b-256 d461a0df6944d2b9ed1da49b7e4ed9d9222002abcc977bc14a92de10213bf0f2

See more details on using hashes here.

Supported by

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