Skip to content

Commit

Permalink
PR: Add icon to represent clearing the console (IPython console) (#21883
Browse files Browse the repository at this point in the history
)
  • Loading branch information
conradolandia authored Mar 17, 2024
1 parent f109640 commit 924b5fe
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spyder/images/dark/clear_console.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions spyder/images/light/clear_console.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions spyder/plugins/ipythonconsole/widgets/main_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -521,13 +521,15 @@ def setup(self):
self.create_action(
ClientContextMenuActions.ClearLine,
text=_("Clear line or block"),
icon=self.create_icon("clear_text"),
triggered=self._current_client_clear_line,
register_shortcut=True
)

self.create_action(
ClientContextMenuActions.ClearConsole,
text=_("Clear console"),
icon=self.create_icon("clear_console"),
triggered=self._current_client_clear_console,
register_shortcut=True
)
Expand Down

0 comments on commit 924b5fe

Please sign in to comment.