Skip to content

Commit

Permalink
Fix observe
Browse files Browse the repository at this point in the history
  • Loading branch information
jsbautista committed Sep 16, 2024
1 parent 213eedc commit 83c5a6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion qtconsole/console_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def _default_shortcut_paste(self):

@observe('shortcut_print', 'shortcut_select_all','shortcut_cut','shortcut_copy','shortcut_paste','shortcut_save')
def _on_shortcut_changed(self, change):
self.log.debug(f"Shortcut for {change['name']} changed to: {change['new']}")
print(f"Shortcut for {change['name']} changed to: {change['new']}")


class ConsoleWidget(MetaQObjectHasTraits('NewBase', (LoggingConfigurable, superQ(QtWidgets.QWidget)), {})):
Expand Down
2 changes: 1 addition & 1 deletion qtconsole/frontend_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class ShortcutManager(HasTraits):

@observe('shortcut_copy_raw')
def _on_shortcut_changed(self, change):
self.log.debug(f"Shortcut for {change['name']} changed to: {change['new']}")
print(f"Shortcut for {change['name']} changed to: {change['new']}")


class FrontendHighlighter(PygmentsHighlighter):
Expand Down

0 comments on commit 83c5a6a

Please sign in to comment.