mirror of
https://github.com/dbarzin/pandora-box.git
synced 2025-07-24 15:59:42 +02:00
code quality
This commit is contained in:
parent
ccf1a9b31c
commit
ed789fb9e8
8 changed files with 37 additions and 44 deletions
|
@ -14,8 +14,8 @@ def initBar():
|
|||
|
||||
def updateBar(progress):
|
||||
global progress_win
|
||||
pos = (60 * progress) // 100
|
||||
if pos != 0 :
|
||||
pos = (60 * progress) // 100
|
||||
if pos != 0:
|
||||
progress_win.addstr(1, 1, "#" * pos)
|
||||
progress_win.refresh()
|
||||
|
||||
|
@ -26,8 +26,5 @@ while loading <= 100:
|
|||
time.sleep(0.03)
|
||||
updateBar(loading)
|
||||
loading += 3
|
||||
|
||||
time.sleep(1)
|
||||
|
||||
#curses.endwin()
|
||||
curses.flushinp()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue