Skip to content

Commit

Permalink
Fix tool activation callback
Browse files Browse the repository at this point in the history
  • Loading branch information
jsbueno committed Jun 3, 2021
1 parent 7116268 commit 5be2153
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions terminedia_paint/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ def tool_setup(self):
"b": (self.pick_background, "Background Color"),
"l": (self.pick_character, "Pick Char"),
"i": (self.insert_image, "Paste Image"),
"e": ((lambda e: setattr(self, "active_tool", self.tools["erase"])), "Erase"),
"p": ((lambda e: setattr(self, "active_tool", self.tools["paint"])), "Paint"),
"e": ((lambda e=None: setattr(self, "active_tool", self.tools["erase"])), "Erase"),
"p": ((lambda e=None: setattr(self, "active_tool", self.tools["paint"])), "Paint"),
"h": ("toggle", "Toggle help"), #(self.toggle_help, "Toggle help"),
"q": (self.quit, "Quit"),
}
Expand Down

0 comments on commit 5be2153

Please sign in to comment.