From 18baea2a7e87a54ccee9a58ab944a9b29f8691c3 Mon Sep 17 00:00:00 2001 From: Justin Date: Wed, 23 Aug 2023 01:19:05 +0800 Subject: [PATCH] increased timing a bit --- world_clock2.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/world_clock2.py b/world_clock2.py index b1df283..064a0cb 100644 --- a/world_clock2.py +++ b/world_clock2.py @@ -129,7 +129,7 @@ else: x_offset = 102 while True: - if 0 <= counter <= 4: + if 0 <= counter <= 5: canvas.Clear() #NEW YORK ny_time = getTimes(ny_timezone) @@ -160,7 +160,7 @@ while True: counter += 1 # print("NY:", ny_time, "LONDON:", london_time, 'TOKYO:', tokyo_time) - elif 5 <= counter <= 9: + elif 6 <= counter <= 11: canvas.Clear() #SYDNEY au_time = getTimes(au_timezone) @@ -191,7 +191,7 @@ while True: counter += 1 # print('DUBAI:', dubai_time, 'AU:', au_time, "LA:", la_time) - elif 10 <= counter <= 14: + elif 12 <= counter <= 17: canvas.Clear() #SHANGHAI cn_time = getTimes(cn_timezone) @@ -221,7 +221,7 @@ while True: counter += 1 # print("CN:", cn_time,"PARIS:", paris_time,"MUMBAI:", in_time) - if counter == 15: + if counter == 18: counter = 0 time.sleep(1)