Example #1
0
    def start(self):
        # only pass the init()/quit() member functions to gimp.main() if the
        # plug-in overrides them, to avoid the default NOP versions from being
        # called unnecessarily.  in particular, this avoids plug-ins that don't
        # implement init() from being registered as having an init function,
        # causing them to be run at each startup.
        def get_func(name):
            if getattr(self.__class__, name) != getattr(plugin, name):
                return getattr(self, name)
            else:
                return None

        gimp.main(get_func("init"), get_func("quit"), self.query, self._run)
Example #2
0
def main():
    '''This should be called after registering the plug-in.'''
    gimp.main(None, None, _query, _run)
Example #3
0
 def main(self):
     gimp.main(None, None, self.register, self.call_plugin)
 def main():
   gimp.main(None, None, _query, _run)
 def start(self):
     gimp.main(self.init, self.quit, self.query, self._run)
Example #6
0
def main():
    """This should be called after registering the plug-in."""
    gimp.main(None, None, _query, _run)
Example #7
0
 def start(self):
     gimp.main(self.init, self.quit, self.query, self._run)
Example #8
0
def main():
	'''This should be called after registering the plugin.'''
	gimp.main(None, None, _query, _run)
 def main():
   """
   Enable the installation and execution of GIMP procedures.
   """
   gimp.main(None, None, _query, _run)
Example #10
0
 def main():
   gimp.main(None, None, _query, _run)
Example #11
0
 def main():
     """
 Enable the installation and execution of GIMP procedures.
 """
     gimp.main(None, None, _query, _run)