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
|
# 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 = {
|
DEFAULT_LINE = {
|
||||||
'character': '#',
|
'character': '#',
|
||||||
|
@ -274,4 +275,4 @@ def main():
|
||||||
t.mainloop()
|
t.mainloop()
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -119,7 +119,7 @@ def seconds_to_hms(seconds):
|
||||||
(hours, minutes) = divmod(minutes, 60)
|
(hours, minutes) = divmod(minutes, 60)
|
||||||
parts = []
|
parts = []
|
||||||
if hours: parts.append(hours)
|
if hours: parts.append(hours)
|
||||||
if minutes: parts.append(minutes)
|
if hours or minutes: parts.append(minutes)
|
||||||
parts.append(seconds)
|
parts.append(seconds)
|
||||||
hms = ':'.join('%02d' % part for part in parts)
|
hms = ':'.join('%02d' % part for part in parts)
|
||||||
return hms
|
return hms
|
||||||
|
|
Loading…
Reference in a new issue