Skip to main content

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.

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.4.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.4-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for solentware_bind-1.0.4.tar.gz
Algorithm Hash digest
SHA256 2e518e91b390409e1018ac9caccc6898db97f5292d9229fee55e967b41d583d9
MD5 0a9a75603b728ad5a096a846d0515f50
BLAKE2b-256 9219c72ca7fc27ee01bd848f8774b5fbc980329e6af9527e9291624ca86461fc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for solentware_bind-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e601083cb9519e72797a17ed55f50beefd278df696d52939c9446d316a3199a7
MD5 c0d3041191f9532764281636448559aa
BLAKE2b-256 29f50ac93f54dc86aa2f9d11bc894c80eeb1d2d2d1f9fdd98f8c9b8e8eaf09d7

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.4 This release

2 files

1.0.3

2 files

1.0.2

2 files

1.0.1

2 files

1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page