Skip to content

N3RDIUM/PyTaskbar

Repository files navigation

PyTaskbar

The ultimate taskbar progress python package!

visitor badge

Docs Here!

Works for both terminals and GUIs!

Requirements:

    comtypes
    PyGetWindow

Installation

click here


Example:

import time
import PyTaskbar

prog = PyTaskbar.Progress()
prog.init()

prog.setState('loading')
time.sleep(5)

prog.setState('normal')

for i in range(100):
    prog.setProgress(i)
    time.sleep(0.05)
prog.setProgress(0)

prog.setState('warning')

for i in range(100):
    prog.setProgress(i)
    time.sleep(0.05)

prog.setProgress(0)
prog.setState('error')

for i in range(100):
    prog.setProgress(i)
    time.sleep(0.05)

prog.setProgress(0)

prog.setState('done')
while True:
    time.sleep(1)
    print('close me!')

Happy Coding!