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.3.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

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

solentware_bind-1.0.3-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file solentware_bind-1.0.3.tar.gz.

File metadata

  • Download URL: solentware_bind-1.0.3.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for solentware_bind-1.0.3.tar.gz
Algorithm Hash digest
SHA256 87d632631780a2207683cf484bb2b99ce2c708632555a24e48fa5c4c9077c612
MD5 69eadb75a851a3a18a6b92df6a47b427
BLAKE2b-256 620642069f67fa7bec95636d660c31c1b5d6e924b78c5c42f7d846986d2339e0

See more details on using hashes here.

File details

Details for the file solentware_bind-1.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for solentware_bind-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bb3d39c76b18540bc62d51b31ba84b99403883b90857ea1257094d39e8d47330
MD5 c28ce490670c115280c54fa87b64fa62
BLAKE2b-256 5f0628c6d81c6fe726db4bb7687accfface63a5debfbea3c161b5109ebbad39f

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