Skip to main content

Create dynamic lists for python GUI (tkinter)

Project description

dynaListTk

Static Badge Static Badge Static Badge Static Badge Static Badge Static Badge


Installation    |    Usage    |    Screenshots


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

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

Usage

dynalistTk class docstring:
"""_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:
###  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

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

dynalistTk-1.2.1.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

dynalistTk-1.2.1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file dynalistTk-1.2.1.tar.gz.

File metadata

  • Download URL: dynalistTk-1.2.1.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.0

File hashes

Hashes for dynalistTk-1.2.1.tar.gz
Algorithm Hash digest
SHA256 0d11cf99e9a87383dcb5a9711f4c51f30936b0f7d731e1dbfb5538f9ca194f36
MD5 c99681e5776f653d9db7b005ac683fda
BLAKE2b-256 d4e66d9fc81c5f52d232aa1e936b1e2471ad93f67e6589c4863183f66fd0a8b9

See more details on using hashes here.

File details

Details for the file dynalistTk-1.2.1-py3-none-any.whl.

File metadata

  • Download URL: dynalistTk-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.0

File hashes

Hashes for dynalistTk-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 814c80060fae2adbe25b5f866f00724a5642a9b64ecfbeb4e08d8e921419008d
MD5 afd59d5333d2141551aa9af20a7abf9d
BLAKE2b-256 7ee66dcd74c8e3301c582bcdaaf26960e496e6d9a295611ae09d2c4ded5227ec

See more details on using hashes here.

Supported by

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