#!/usr/bin/env python # This plugin was created by the GIMP
plugin "GimpScripter..." i.e. plugin-gimpscripter.py # This
*wrapper* plugin calls one or more *wrapped* or *target* plugins
or PDB procedures. # Below, "# <=" indicates lines that had
substitutions by GimpScripter ''' Runtime "library" for a Gimp
wrapper plugin. Runtime means can be called by the wrapper
plugin when it runs. Not needed or present in all wrapper
plugins. You are probably reading this in a wrapper plugin
generated by GimpScripter. The source for this file is
gimpscripter/runtime.py ''' from gimpfu import * ''' Classes for
shadowing Gimp objects so that we can infer their creation and
deletion by commands in the wrapper plugin and maintain a stack
whose top can be referred to by commands. ''' class
GimpStack(list): ''' GimpScripter stack of active Gimp
objects.''' def __init__(self, type_on_stack, an_object=None):
self.type_on_stack = type_on_stack # Readable type, not the
encoding PF_foo # For init, an_object MUST be a formal paramete