mirror of
https://github.com/dbarzin/pandora-box.git
synced 2025-07-25 08:19:41 +02:00
reformating
This commit is contained in:
parent
7134251bb3
commit
1a29d021cf
6 changed files with 192 additions and 181 deletions
|
@ -5,20 +5,23 @@ import time
|
|||
|
||||
curses.initscr()
|
||||
|
||||
|
||||
def initBar():
|
||||
global progress_win
|
||||
progress_win = curses.newwin(3, 62, 3, 10)
|
||||
progress_win.border(0)
|
||||
|
||||
|
||||
def updateBar(progress):
|
||||
global progress_win
|
||||
rangex = (60 / float(100)) * progress
|
||||
pos = int(rangex)
|
||||
display = '#'
|
||||
display = "#"
|
||||
if pos != 0:
|
||||
progress_win.addstr(1, pos, "{}".format(display))
|
||||
progress_win.refresh()
|
||||
|
||||
|
||||
initBar()
|
||||
loading = 0
|
||||
while loading < 100:
|
||||
|
@ -30,4 +33,3 @@ time.sleep(1)
|
|||
|
||||
curses.endwin()
|
||||
curses.flushinp()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue