home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2010 January / maximum-cd-2010-01.iso / DiscContents / gimp-2.6.7-i686-setup.exe / {app} / lib / gimp / 2.0 / python / gimpplugin,1.pyc (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2009-08-14  |  1.4 KB  |  33 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. import gimp
  5.  
  6. class plugin:
  7.     
  8.     def start(self):
  9.         gimp.main(self.init, self.quit, self.query, self._run)
  10.  
  11.     
  12.     def init(self):
  13.         pass
  14.  
  15.     
  16.     def quit(self):
  17.         pass
  18.  
  19.     
  20.     def query(self):
  21.         pass
  22.  
  23.     
  24.     def _run(self, name, params):
  25.         if hasattr(self, name):
  26.             return apply(getattr(self, name), params)
  27.         raise AttributeError, name
  28.  
  29.  
  30. if __name__ == '__main__':
  31.     plugin().start()
  32.  
  33.