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 it with pytktable, prebuilt for Linux, macOS and Windows, with pip install "pytktable[binary]", or install it yourself 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. For the story behind pytktable and its binaries, see this blog post.

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

With Tktable, prebuilt for Linux, macOS and Windows (pytktable-binaries):

pip install "pytktable[binary]"

Without Tktable, if you install it yourself (see Installation):

pip install pytktable

It is imported as tktable (from tktable import Table). Run python -m tktable to check that Tktable can be found and loaded.

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.3.1

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.3.1
File Size Uploaded Provenance Actions
pytktable-0.3.1.tar.gz 15.7 kB With provenance Details for pytktable-0.3.1.tar.gz

Built distribution (wheel)

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

Total release size: 30.6 kB

Release files / pytktable-0.3.1.tar.gz

Download URL pytktable-0.3.1.tar.gz
Size 15.7 kB
Tags Source
SHA-256 checksum
How to use checksums
21a259bb0f57d4a05dca175c2e8ee7f9d42e0a6734f55e2e744eb8ee32e2613b
BLAKE2b-256 checksum
How to use checksums
98da1d8ced1c83162fcac0877ff3a2e90097d54fffe064775510777fe84f8d47
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 8, 2026.

Transparency log

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

Download URL pytktable-0.3.1-py3-none-any.whl
Size 14.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
099a979081667c9fe4b204e017a76b28064d4e86aaee3224296056cfaa211189
BLAKE2b-256 checksum
How to use checksums
4d2ef6faba44d0298669537c6427084a909e8f1d34d7e4d099d737f3ebd19ad5
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 8, 2026.

Transparency log

Security for pytktable 0.3.1

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pytktable-0.3.1.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 8, 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