Skip to main content

Extendable table class for Tkinter

Project description

Description

This package allows interactive spreadsheet-style tables to be added into a Tkinter application. Tkinter is the standard GUI toolkit for Python. A sample application using these classes is included in the distribution. Now works with Python 3. A sample application using these classes is included in the distribution.

Installation

From pypi:

pip install tkintertable

From github:

pip install -e git+https://github.com/dmnfarrell/tkintertable.git#egg=tkintertable

You can clone the current source using:

git clone https://github.com/dmnfarrell/tkintertable.git

Usage

Import:

from tkintertable import TableCanvas, TableModel

Create table:

tframe = Frame(master)
tframe.pack()
table = TableCanvas(tframe)
table.show()

Constructor options:

table = TableCanvas(frame, model,
                    cellwidth=60, cellbackgr='#e3f698',
                    thefont=('Arial',12),rowheight=18, rowheaderwidth=30,
                    rowselectedcolor='yellow', editable=True)

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

tkintertable-1.3.3.tar.gz (58.7 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page