This commit is contained in:
Ethan Dalool 2020-01-29 16:42:10 -08:00
parent 52b0d1776d
commit 7661a0e6ca
2 changed files with 4 additions and 3 deletions

View file

@ -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': '#',
@ -274,4 +275,4 @@ def main():
t.mainloop()
if __name__ == '__main__':
main()
main()

View file

@ -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