Welcome to TkUtils
tkutils is a package offering some additional logic and syntactic sugar when using tkinter.
The main goal is to fill some gaps of tkinter, which might make it very annoying to use.
Online version of the help documentation: http://frederic-zinelli.gitlab.io/tkutils/
Features
Additional logic: two-way binding, with Binder
The Binder class is to setup a transparent two-way
binding reactivity between widgets and underlying object properties from the model/logic layer
of the application.
Several advantages come with this:
- Changes of bound properties in the model layer are cascading in the GUI automatically.
- The model layer of the application becomes (finally) totally independent from the presentation
layer. This means it becomes very easy to build and test the model layer, without any need to
think about its integration with
tkinteritself.
Syntactic sugar
GridLayout
A grid layout manager which is abstracting away all the naughty widget.grid(...) calls and
rows/columns grid configuration. Positioning widgets in the grid and controlling their "spanning"
becomes very easy, without extra typing.
MenuBuilder
A helper to build menus and to abstract away all the technicalities encountered when creating menus through
tkinter, which quickly make the declarations very unclear. Using the MenuBuilder, the actual Menu hierarchy becomes very obvious: "what you see is what you get".
Event
A utility to build event strings with auto-completion/IDE suggestions support.
KeySym
A utility to get all keysym information with auto-completion/IDE suggestions (providing string, keycode and keysym_num values).
images
Various factories related to images to:
- Simplify and reduce the typing needed,
- Handle file conversions automatically,
- Register automatically the image object on the host for the user (to avoid garbage collection).
Requirements
- python 3.8+
- Pillow
Installation
- Through PyPi:
pip install tkutils
- Using an archive file (with the appropriate version number):
pip install tkutils.1.0.2.tar.gz
- Cloning the GitLab repository.
Metadata
Release files for tkutils 1.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tkutils-1.1.3.tar.gz | 76.9 kB | Without provenance | Details for tkutils-1.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tkutils-1.1.3-py3-none-any.whl | Python 3 | none | any | Details for tkutils-1.1.3-py3-none-any.whl |
Total release size: 163.4 kB
Release files / tkutils-1.1.3.tar.gz
| Download URL | tkutils-1.1.3.tar.gz |
|---|---|
| Size | 76.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ccd821e4f50c161e6ab5087c20f1395f5adff17d0ef7374bc7fdf12948b33719
|
|
BLAKE2b-256 checksum How to use checksums |
870b0f47e67cfbd245da668b32aea2e75f1a84dfa459ffdb07e8340dda563213
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.3 CPython/3.10.10 Linux/6.8.0-90-generic
|
Release files / tkutils-1.1.3-py3-none-any.whl
| Download URL | tkutils-1.1.3-py3-none-any.whl |
|---|---|
| Size | 86.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a12d568916da2e480d973a22b696f46d8a1c9855b7b48d81c95e6c8a8524c173
|
|
BLAKE2b-256 checksum How to use checksums |
ee80e582362d8f0522c0b1d4eded7271607f5d0187dd0c885e2e4f501ed088f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.3 CPython/3.10.10 Linux/6.8.0-90-generic
|
Security for tkutils 1.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.