Skip to content

Commit c4c8f62

Browse files
Fix Flake8 errors: remove unused variables and assign newTable properly
1 parent 943f0b8 commit c4c8f62

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

stop_watch/Stopwatch.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
from datetime import datetime
44

55
counter = 66600
6-
running = False
6+
running =
77

88

99
def counter_label(label):
1010
def count():
1111
if running:
1212

1313
# To manage the initial delay.
14-
if counter == 66600:
14+
if counter ==
1515
display = "Starting"
1616
else:
1717
tt = datetime.fromtimestamp(counter)

tkinter_python_gui/USWeatherForecast.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def NewEntry(data, city):
8585
cityEntry.grid(column=1, row=2, pady=20)
8686

8787
# Global variables to update button text and check if table exists
88-
newTable = True
88+
newTable = []
8989
button_text = tk.StringVar()
9090
button_text.set("Get Weather")
9191

0 commit comments

Comments
 (0)