def switch_to_plugin(self): """Switch to plugin This method is called when pressing plugin's shortcut key""" self.findinfiles_callback() # Necessary at least with PyQt5 on Windows SpyderPluginMixin.switch_to_plugin(self)