Metadata-Version: 2.1
Name: dynalistTk
Version: 1.2.1
Summary: Create dynamic lists for python GUI (tkinter)
Author-email: Soumyo Deep Gupta <deep.main.ac@gmail.com>
Maintainer-email: Soumyo Deep Gupta <deep.main.ac@gmail.com>
License: MIT License
        
        Copyright (c) 2024 Soumyo Deep Gupta
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://github.com/d33pster/dynalistTk
Project-URL: Issues, https://github.com/d33pster/dynalistTk/issues
Keywords: d33pster,dynamiclist,tkinter list,list gui,python gui list,gui,tkiner,tcl
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Build Tools
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: tk

# <p align='center'> dynaListTk </p>

![Static Badge](https://img.shields.io/badge/pypi-available-brightgreen?style=flat&logo=Pypi&logoColor=red)
![Static Badge](https://img.shields.io/badge/Linux-supported-blue?style=flat&logo=Linux&logoColor=red)
![Static Badge](https://img.shields.io/badge/Windows-supported-blue?style=flat&logo=Windows&logoColor=red)
![Static Badge](https://img.shields.io/badge/MacOS-supported-blue?style=flat&logo=Macintosh&logoColor=red)
![Static Badge](https://img.shields.io/badge/Tkinter-dependent-yellow?style=flat&logo=tkinter&logoColor=red)
![Static Badge](https://img.shields.io/badge/python-only-green?style=flat&logo=python&logoColor=red)
<br><br><br>

<p align='center'>
    <a href='#Installation'>Installation</a>
    &nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;
    <a href='#Usage'>Usage</a>
    &nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;
    <a href='#Screenshots'>Screenshots</a>
</p><br>

## About
dynalistTK extends Tkinter and helps in making Dynamic Lists with multiple columns. It also allows sorting of the columns when you click the column name and has two scrollbars.

## Installation
```console
## requires python3.9 or above with pip installed
## run
$ pip install dynalistTk
```

## Usage

###### dynalistTk class docstring:
```console
"""_summary_
class dynaList: initiate class object

Args:
    master (Tk.Frame | ttk.Frame | Tk | Toplevel): parent frame or Tk window (root window) or Toplevel window (Tk popup)
    headers (list): Column names
    data (list): data to be put
Data Format:
data = [
    (value1_row1, value2_row1, ...),
    (value1_row2, value2_row2, ...),
    ...
]
 """
```

###### usage code example:

```console
###  python code:

# import the packaged
from tkinter import Tk, Toplevel
from dynalistTk import dynalistTk

# define column headers
headers = ['column1', 'column2']

# define column data
data = [
    (1, 2),
    (3, 4),
    (90, 100)
]

# create a main root window using tkinter
root = Tk()

# create a list for the whole screen
list_control = dynalistTk(root, headers, data)


# start mainloop
root.mainloop()

```

->-> The above code will generate:

| column1 | column2 |
| ------- | ------- |
|    1    |    2    |
|    3    |    4    |
|    90   |   100   |

## Screenshots
<img src='images/test.png'>
