def on_shortcuts(self, *args): """ Shows keyboard shortcuts """ shortcuts = Application.shortcuts_dialog() if shortcuts: shortcuts.set_transient_for(self.win) shortcuts.show()