Skip to main content

pytktable

PyPI Python Tests Docs License

A spreadsheet-like table widget for tkinter, wrapping the Tcl/Tk Tktable extension.

⚠️ Important: pytktable is only the Python wrapper. The table widget itself is Tktable, an extension for Tcl/Tk written in C, which pip install pytktable does not install. Install Tktable first, following the installation instructions for your OS, then run python -m tktable to check that it works.

The wrapper was originally written by Guilherme Polo.

A window with a table of the 8 planets of the Solar System, made with pytktable

The example above shows the planets of the Solar System, from NASA's Planetary Fact Sheet (screenshot taken on Windows 11).

Features

  • Spreadsheet-like tables with title rows and columns, editable cells, and keyboard navigation.
  • Cell values kept in an ArrayVar (a Tcl array), or computed on demand by a callback.
  • Styling with tags: colors, fonts, alignment and relief, for single cells, rows or columns.
  • Merged cells (spans), embedded widgets, and resizable rows and columns.
  • Cells that flash when their value changes, with a color of your choice.
  • Selection of cells, rows or columns; inserting and deleting rows and columns.
  • Callbacks when the active cell changes, to compute cell values, to validate edits, and to format the selection when it is copied.
  • Works on Linux, macOS and Windows, with Python 3.11 or later and Tcl/Tk 8.6 or 9.0, once Tcl/Tk (usually bundled with Python) and the Tktable extension are installed.
  • python -m tktable checks that Tktable can be found and loaded.

Installation

pip install pytktable

It is imported as tktable (from tktable import Table). It also needs the Tktable extension, which pip does not install: see Installation for how to install it on your OS, and run python -m tktable to check that it works.

Documentation

https://nbro.github.io/tktable/: usage, API reference, development and releasing.

License

BSD 2-Clause.

Copyright (c) 2008, Guilherme Polo
Copyright (c) 2016-2026, nbro

See the changelog for what changed in this fork.

Metadata

Release files for pytktable 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytktable 0.2.0
File Size Uploaded Provenance Actions
pytktable-0.2.0.tar.gz 14.9 kB With provenance Details for pytktable-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pytktable 0.2.0
File Interpreter ABI Platform Actions
pytktable-0.2.0-py3-none-any.whl Python 3 none any Details for pytktable-0.2.0-py3-none-any.whl

Total release size: 29.3 kB

Release files / pytktable-0.2.0.tar.gz

Download URL pytktable-0.2.0.tar.gz
Size 14.9 kB
Tags Source
SHA-256 checksum
How to use checksums
006733e3780245fb4dc7eefc8c89be316f4220d9e9536bd126b4be65ea1995f5
BLAKE2b-256 checksum
How to use checksums
7c4403e6e607ec1cdd24d7126ef278a4c3489224b1d89069b6f022e7d1da16f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

Release files / pytktable-0.2.0-py3-none-any.whl

Download URL pytktable-0.2.0-py3-none-any.whl
Size 14.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3a1d89feb0e1851cb04b1fd22e2225816b8810238c501e7202969beff45f2180
BLAKE2b-256 checksum
How to use checksums
cd646c44893b7b05e2a5e33ce7348780e90dc62f2b17e9d6e12058440b920a37
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

Security for pytktable 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pytktable-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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