Bind and exception handling for tkinter callbacks.
Project description
Description
This package provides wrappers to catch exceptions in tkinter callbacks and use the identifiers returned by tkinter bind and tag_bind methods to avoid memory leaks. The idlelib module provided examples to follow.
Installation Instructions
This package is available on PyPI so can be installed by typing
python -m pip install –user solentware-misc
at the command prompt.
See Python and pip documentation for alternatives and platform-specific points.
Notes
The docstring for tkinter.Misc.bind() states, at Python 3.9.14, “Bind will return an identifier to allow deletion of the bound function with unbind without memory leak.”.
The docstrings for tkinter.Misc.bind_all(), tkinter.Misc.bind_class(), tkinter.Canvas.tag_bind(), and tkinter.Text.tag_bind(), refer to the docstring for tkinter.Misc.bind().
Wrappers for tkinter.Misc.bind_all() and tkinter.Misc.bind_class() are not provided.
The solentware_bind project exists to avoid solentware_base and solentware_grid depending on each other. The exceptionhandler and gridbindings modules were in solentware_misc before the bindings module was added.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file solentware-bind-1.0.1.tar.gz
.
File metadata
- Download URL: solentware-bind-1.0.1.tar.gz
- Upload date:
- Size: 11.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69cd9f6df916c2358ce394331b47799244ac1a66cfbd73a795e9e0d278921a3d |
|
MD5 | d55d013af3cadccb5273d8a75903ca6e |
|
BLAKE2b-256 | 513b9a074b6c5ae69a2f261dae6fc4410eeba6369cfad6ab2b7a68cc98d76c82 |
File details
Details for the file solentware_bind-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: solentware_bind-1.0.1-py3-none-any.whl
- Upload date:
- Size: 11.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0dc491bfb96987f68ef66176987dc4bff75e1214f4e24e5b3d9d70575f4cdacf |
|
MD5 | e7326d5d4ea17803250210b090aadcf8 |
|
BLAKE2b-256 | 3ae32a2b37d52a5c9800996c459ca07f7bfd97abe33b0ffd4f50d39eee3e8f36 |