Skip to content

Commit

Permalink
Flake8 improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
slightlynybbled committed May 4, 2018
1 parent eb05109 commit 70de22b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tk_tools/canvas.py
Original file line number Diff line number Diff line change
Expand Up @@ -576,9 +576,11 @@ def to_yellow(self, on: bool=False):
self._load_new(led_yellow_on)

if self._toggle_on_click:
self._canvas.bind('<Button-1>', lambda x: self.to_yellow(False))
self._canvas.bind('<Button-1>',
lambda x: self.to_yellow(False))
else:
self._load_new(led_yellow)

if self._toggle_on_click:
self._canvas.bind('<Button-1>', lambda x: self.to_yellow(True))
self._canvas.bind('<Button-1>',
lambda x: self.to_yellow(True))

0 comments on commit 70de22b

Please sign in to comment.