Skip to main content

The ultimate taskbar progress python package!

Project description

PyTaskbar

The ultimate taskbar progress python package!

About

This is a wrapper API around the TaskbarLib.tlb (Windows 7+) that makes it easy to show progress in the taskbar icon, a great plus when it comes to UX for your desktop/TUI application. Simple API, works with any GUI framework!

Installation

This package is available on PyPI! For most cases, installation is as simple as:

pip install PyTaskbar

If you want to install latest git instead:

pip install git+https://github.com/N3RDIUM/PyTaskbar.git

Usage

Here's a minimal usage example:

import time
from PyTaskbar import TaskbarProgress, ProgressType

# This will target the terminal window.
progress = TaskbarProgress()

# If you're using a GUI framework, pass the target window handle like so:
# progress = TaskbarProgress(window_handle)

# No progress
progress.set_progress_type(ProgressType.NOPROGRESS)
time.sleep(3)

# Indeterminate progress state
progress.set_progress_type(ProgressType.INDETERMINATE)
time.sleep(3)

# Normal (green) progress
progress.set_progress_type(ProgressType.NORMAL)
for i in range(100):
    progress.set_progress(i)
    time.sleep(0.05)

# Paused (yellow) progress
progress.set_progress_type(ProgressType.PAUSED)
progress.set_progress(42)
time.sleep(2)

# Error (red) progress
progress.set_progress_type(ProgressType.ERROR)
progress.set_progress(42)
time.sleep(2)

# Flash the taskbar icon signalling that the task completed
progress.flash_done()
time.sleep(5)

Thanks and citations

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

pytaskbar-0.1.1.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytaskbar-0.1.1-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file pytaskbar-0.1.1.tar.gz.

File metadata

  • Download URL: pytaskbar-0.1.1.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for pytaskbar-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b6a9e43004ef95ad8b7de8e17f99538a4bf140de44a953622210070d91a2b2dd
MD5 ce6554b44d9b6e81a157e47f7cf3f546
BLAKE2b-256 57be9e01cf0d552d1afa4c0d39d4107fc489e5b0d170597cd46919079fe4254d

See more details on using hashes here.

File details

Details for the file pytaskbar-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pytaskbar-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for pytaskbar-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5c994d1214d18bc4d0a1260463f34fb9d799ad29a79586f879b23925bba67fb3
MD5 19a153d38eba1335ee588b6163a25757
BLAKE2b-256 1044ee65292298ecf9eda4a51d71c7bbd4dbbf4a5efe8267880a0c12f5f6dbe1

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