Skip to main content

A module to display some customized tkinter modules

Project description

Tkinter Helper

A module to display some customized tkinter modules.

Getting Started

You may download this project directly from GitHub, or you may use Python's package manager(pip).

Prerequisites

Please see requirements.txt for prerequisites.

Installing

Use pip to install this library.

pip install tkhelper

Running the tests

Doctests and unit tests can be run.

Running doctests

Use python doctest.

python -m doctest tkhelper\widgets.py tkhelper\progressbars\circular.py

Running unit tests

Unit tests still in development.

Example Usage

import tkinter as tk
from tkhelper.widgets import ResizableLabel, ResizableButton
from tkhelper.progressbars.circular import TransparentSpinnerBar, SpinnerLoadingBar

root = tk.Tk()

circular_bar = TransparentSpinnerBar(root, kind=SpinnerLoadingBar)
def start_bar():
    circular_bar.start()
    resizable_button.config(
        command=stop_bar,
        text="Click the button to stop the circular loading bar"
    )

def stop_bar():
    circular_bar.stop()
    resizable_button.config(
        command=start_bar,
        text="Click the button to run the circular loading bar"
    )


resizable_label = ResizableLabel(
    root, text="Example resizable label",
    weight=0.9, resize=True
)
resizable_label.grid()

resizable_button = ResizableButton(
    root, text="Click the button to run the circular loading bar",
    weight=0.5, resize=True, command=start_bar
)
resizable_button.grid()

root.geometry("500x500")
root.mainloop()

Version Info

Version 1.0.0.

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details

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

tkhelper-2.1.1.tar.gz (24.4 kB view details)

Uploaded Source

Built Distribution

tkhelper-2.1.1-py3-none-any.whl (24.3 kB view details)

Uploaded Python 3

File details

Details for the file tkhelper-2.1.1.tar.gz.

File metadata

  • Download URL: tkhelper-2.1.1.tar.gz
  • Upload date:
  • Size: 24.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.11

File hashes

Hashes for tkhelper-2.1.1.tar.gz
Algorithm Hash digest
SHA256 f6b00b1e0a7f9256523d6f3427c90ef6761488ceb23900ba91e7777b9bc7dd6c
MD5 f5d8faf44d6fa4044aa132406dfd085e
BLAKE2b-256 88c285c574681b6ab48603b0ed210f08b019229b1de8128c6dd5d6162531b7e0

See more details on using hashes here.

File details

Details for the file tkhelper-2.1.1-py3-none-any.whl.

File metadata

  • Download URL: tkhelper-2.1.1-py3-none-any.whl
  • Upload date:
  • Size: 24.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.11

File hashes

Hashes for tkhelper-2.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0f714f74024f6e27ae00713559e977f1adbd810f5e6bb2b7395ad0e9405a7d26
MD5 c760c21f65849f6da41fad4af0c4b3ee
BLAKE2b-256 70d65a4c1f2755ce0badb95736a7c7d8e620c23e81e5772cafb9a60e6cbdd37e

See more details on using hashes here.

Supported by

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