Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def on_preferences(self, action, parameter):
preferences = PreferencesDialog(self.get_active_window())
preferences.connect("response", lambda *args: preferences.destroy())
preferences.run()