Skip to main content

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

Metadata

Release files for PyTaskbar 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for PyTaskbar 0.1.1
File Size Uploaded
pytaskbar-0.1.1.tar.gz 6.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for PyTaskbar 0.1.1
File Interpreter ABI Platform
pytaskbar-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 14.4 kB

Release files / pytaskbar-0.1.1.tar.gz

Download URL pytaskbar-0.1.1.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
b6a9e43004ef95ad8b7de8e17f99538a4bf140de44a953622210070d91a2b2dd
BLAKE2b-256 checksum
How to use checksums
57be9e01cf0d552d1afa4c0d39d4107fc489e5b0d170597cd46919079fe4254d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release files / pytaskbar-0.1.1-py3-none-any.whl

Download URL pytaskbar-0.1.1-py3-none-any.whl
Size 7.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5c994d1214d18bc4d0a1260463f34fb9d799ad29a79586f879b23925bba67fb3
BLAKE2b-256 checksum
How to use checksums
1044ee65292298ecf9eda4a51d71c7bbd4dbbf4a5efe8267880a0c12f5f6dbe1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page