31 from python_qt_binding.QtCore
import QObject
36 Interface for Python plugins. 38 User-defined plugins may either subclass `qt_gui.plugin.Plugin` or according to duck typing 39 implement only the needed methods. 43 """Instantiate the plugin and pass the `PluginContext`.""" 44 super(Plugin, self).
__init__(context)
45 self.setObjectName(
'Plugin')
48 """Shutdown and clean up the plugin before unloading.""" 53 Save the intrinsic state of the plugin to the plugin or instance specific `Settings`. 55 @param plugin_settings: The plugin-specific settings 56 @type plugin_settings: qt_gui.settings.Settings 57 @param instance_settings: The instance-specific settings 58 @type instance_settings: qt_gui.settings.Settings 64 Restore the intrinsic state of the plugin from the plugin or instance specific `Settings`. 66 @param plugin_settings: The plugin-specific settings 67 @type plugin_settings: qt_gui.settings.Settings 68 @param instance_settings: The instance-specific settings 69 @type instance_settings: qt_gui.settings.Settings def restore_settings(self, plugin_settings, instance_settings)
def shutdown_plugin(self)
def save_settings(self, plugin_settings, instance_settings)
def __init__(self, context)