# 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)
~~~~
----------------------
------------------------
: 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)
~~~~
----------------------
Release files for paphra-tktable 1.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| paphra-tktable-1.0.4.tar.gz | 6.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| paphra_tktable-1.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.3 kB
Release files / paphra-tktable-1.0.4.tar.gz
| Download URL | paphra-tktable-1.0.4.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5a28d915bc7b3fd62ae78b7145636d274bc12b70489d33a6a545b606d29cc995
|
|
BLAKE2b-256 checksum How to use checksums |
77d6b09fcebc13647ed2f9e0809c3e81522ff4716c9304b78a0a804978c1e4f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / paphra_tktable-1.0.4-py3-none-any.whl
| Download URL | paphra_tktable-1.0.4-py3-none-any.whl |
|---|---|
| Size | 13.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
75895243e3b24488949c2ded4cc72eb1fd32a64e8d3e79f49a89f250e8c4dc0e
|
|
BLAKE2b-256 checksum How to use checksums |
9d9e222c872c42805f111a3aff652282083e030581f86ddcad7be0c7c8d7c45f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|