Skip to content

Commit 6520cea

Browse files
committed
Linting
1 parent 59e48e8 commit 6520cea

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

PyPortal_Calculator/code.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ def make_button(row, col, label, width=1, color=WHITE, text_color=BLACK):
8686

8787
def find_button(label):
8888
result = None
89-
for i, b in enumerate(buttons):
90-
if b.label == label:
91-
result = b
89+
for _, btn in enumerate(buttons):
90+
if btn.label == label:
91+
result = btn
9292
return result
9393

9494
# Add the display and buttons to the main calc group
@@ -104,7 +104,7 @@ def find_button(label):
104104
point = ts.touch_point
105105
if point is not None:
106106
# Button Down Events
107-
for i, b in enumerate(buttons):
107+
for _, b in enumerate(buttons):
108108
if b.contains(point) and button == "":
109109
b.selected = True
110110
button = b.label

0 commit comments

Comments
 (0)