def __init__(self, plugin, objmap): generators = list(plugin.discover_classes(ImageGeneratorClass)) assert len( generators ) == 1, 'Expect exactly one subclass of ImageGeneratorClass in plugin' self.generator_klass = generators[0] InsertedObjectTypeExtension.__init__(self, plugin, objmap)
def __init__(self, plugin, objmap): # InsertSymbolDialog(self.plugi).run() self._widgets = WeakSet() self.preferences = plugin.preferences InsertedObjectTypeExtension.__init__(self, plugin, objmap) self.connectto(self.preferences, 'changed', self.on_preferences_changed)
def __init__(self, plugin, objmap): self._widgets = weakref.WeakSet() self.preferences = plugin.preferences InsertedObjectTypeExtension.__init__(self, plugin, objmap) self.connectto(self.preferences, 'changed', self.on_preferences_changed)