Skip to content

Commit

Permalink
Update docs.md
Browse files Browse the repository at this point in the history
  • Loading branch information
N3RDIUM authored May 21, 2021
1 parent 9c99da8 commit 8f744d9
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,41 +40,41 @@ To install:

## example:

import time
import tbprog
import time
import PyTaskbar

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

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

prog.setState('normal')
prog.setState('normal')

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

prog.setState('warning')
prog.setState('warning')

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

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

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

prog.setProgress(0)
prog.setProgress(0)

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

##### [back to top](#index)
##### [API docs](#main_object)
Expand Down

0 comments on commit 8f744d9

Please sign in to comment.