Skip to main content

Python Tkinter Table. Designed to give the user the control over tables in Python

Project description

# Python Tkinter Table by Paphra
------------------------

: This module creates a tkinter table according to the specifications.
The table is entirely scrollable and allows selection of a row
and visibly seeing the selected row using the highlight of grey
color, but the color can be changed easily.
Deleting of a row is supported by this table using the appropriate
functions and methods and once a row is deleted, another is
automatically selected in the place of the deleted row
Scrolling can be done by the mouse wheel or the Scrollbar for both
the vertical and the horizontal

--------

## Note:
--------
: Python Dictionaries are used for the rows. Each row must be
a python dictionary for this table to work well. Uniform or
constant keys for these dictionaries must be used

-------------

## Imports:
-------------
1. tk - The main tkinter module
2. messagebox - For the confirmation of the deletion of a row
3. ttk - The themed tkinter
4. Thread - For background tasks
-------------

## Procedure of How to use the Python Table
-------------------------------------------
1. Make a list of all the keys for the python dictionaries. The
keys which represent the individual columns in the row

2. Make a list of dictionaries for the titles. Each title
dictionary is a single column and this dictionary represents
the column header. The dictionary must contain the following
keys:
- text: this is text for the column header
- width: the integer for the width of the column
- type: the type of the widget to use for holding the
data in the column. The type is represented by a single
letter in the string data type
* 'l' - for the Label widget
* 'c' - for the Combobox widget

3. Make a list of dictionaries, each dictionary representing the
row. Each row must be having all the keys specified in the list
of keys.

4. Initialize the class called 'Table' passing the neccessary arguments
5. Call 'add_rows()' passing the neccessary arguments

6. For deleting, select a row and call 'delete_row()'
7. You can also get the currently selected row by calling the
method 'get_selected()'

# installing
~~~~
pip install paphra-tktable
from paphra_tktable import table

tb = table.Table(master)
~~~~
----------------------


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

paphra-tktable-1.0.4.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

paphra_tktable-1.0.4-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

Details for the file paphra-tktable-1.0.4.tar.gz.

File metadata

  • Download URL: paphra-tktable-1.0.4.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for paphra-tktable-1.0.4.tar.gz
Algorithm Hash digest
SHA256 5a28d915bc7b3fd62ae78b7145636d274bc12b70489d33a6a545b606d29cc995
MD5 a2ee5977ea16163531785d309b533209
BLAKE2b-256 77d6b09fcebc13647ed2f9e0809c3e81522ff4716c9304b78a0a804978c1e4f8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: paphra_tktable-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 13.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for paphra_tktable-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 75895243e3b24488949c2ded4cc72eb1fd32a64e8d3e79f49a89f250e8c4dc0e
MD5 743c12ca0d184f18c670c30bc464197c
BLAKE2b-256 9d9e222c872c42805f111a3aff652282083e030581f86ddcad7be0c7c8d7c45f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page