def quit(self): """ Quits the editor. An onQuit signal is sent before the application closes """ events.onQuit.send(sender=self) self._pluginmanager.stop() self._settings.saveSettings() PychanApplicationBase.quit(self)