Skip to main content

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

Project description

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

: This module creates a 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-table
from paphra_table import table

tb = table.Table(master) # any master can work
~~~~
----------------------


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-table-1.0.3.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_table-1.0.3-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file paphra-table-1.0.3.tar.gz.

File metadata

  • Download URL: paphra-table-1.0.3.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-table-1.0.3.tar.gz
Algorithm Hash digest
SHA256 a45b1904615ca7ca83252ec2da359514b3e913d5b820eca704e6f1f059386816
MD5 74da8f8b5d1ddd12be6a99721434af58
BLAKE2b-256 e7bb1e5f9d14543bffecd9671ca955689486cc52dcd3bbab66ddb7c71e810012

See more details on using hashes here.

File details

Details for the file paphra_table-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: paphra_table-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 7.9 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_table-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a378bbc31c27d17107175ff15046b987f4756d43f83db61be08ed5f7dfa54c70
MD5 1d72ac50b14d257a2af04d1f46e4fd70
BLAKE2b-256 e0a6f6f581b5138a75f7257f5fd33f3453f13aa2dcaf536dafa917256597bed4

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