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

Uploaded Source

Built Distribution

solentware_bind-1.0-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file solentware-bind-1.0.tar.gz.

File metadata

  • Download URL: solentware-bind-1.0.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.14

File hashes

Hashes for solentware-bind-1.0.tar.gz
Algorithm Hash digest
SHA256 9b408a6262b593dfc97010a3acf15ba251a5599ad630a0a5fabcdad39c6c7d59
MD5 4677d23435352d9d703d3f299b21ec2e
BLAKE2b-256 5cf8bc612db5217766d9dcc1e770739692821ab414c79903b5786674aecf43f6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for solentware_bind-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bcfd6431f4d54b63306128fe13e6cb6b19b80409cf701a9a8bb7a4e58d1968f1
MD5 a3ed48fc045445d4b1a9a216158a99cd
BLAKE2b-256 4aca199062c6edb79760a84af0923d03df0205725d1de693ad9d8d1dd9afe0ef

See more details on using hashes here.

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