Skip to main content

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


Download files

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

Source Distribution

solentware-bind-1.0.1.tar.gz (11.0 kB view hashes)

Uploaded Source

Built Distribution

solentware_bind-1.0.1-py3-none-any.whl (11.3 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