else.
This commit is contained in:
parent
52b0d1776d
commit
7661a0e6ca
2 changed files with 4 additions and 3 deletions
|
@ -13,7 +13,8 @@ import tkinter
|
|||
# 0, 90, 180, 270
|
||||
# ░▒▓
|
||||
|
||||
SCREEN_WIDTH = shutil.get_terminal_size()[1] - 6
|
||||
SCREEN_WIDTH = shutil.get_terminal_size()[0] - 6
|
||||
print(SCREEN_WIDTH)
|
||||
|
||||
DEFAULT_LINE = {
|
||||
'character': '#',
|
||||
|
|
|
@ -119,7 +119,7 @@ def seconds_to_hms(seconds):
|
|||
(hours, minutes) = divmod(minutes, 60)
|
||||
parts = []
|
||||
if hours: parts.append(hours)
|
||||
if minutes: parts.append(minutes)
|
||||
if hours or minutes: parts.append(minutes)
|
||||
parts.append(seconds)
|
||||
hms = ':'.join('%02d' % part for part in parts)
|
||||
return hms
|
||||
|
|
Loading…
Reference in a new issue