Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[split] Installing Python scripts
#3
Thanks, Ofnuts,
Trying Gimp2.8 now, deleted gimp 2.20.22
Old plugins example, old guideloab with extensions was (is I hope reviable).
This is different to gimp 2.10. 22
Code:
class arakneguideLab(gimpplugin.plugin):
    def start(self):
        gimp.main(self.init, self.quit, self.query, self._run)
    def init(self):
        pass
    def quit(self):
        pass
    def query(self):
        cright = "jfgarcia"
        date = "2013-2014"
        plug_descr = _("Admin")
        plug_params = [(PDB_INT32, "run_mode", "Run mode"), (PDB_IMAGE, "image", "Input image"),]
        gimp.install_procedure("arakne_guide_lab", plug_descr, plug_descr, "jfgarcia", cright, date, "<Image>/GTK/Guides lab...", "RGB*, GRAY*", PLUGIN, plug_params,[])

    def arakne_guide_lab(self, runmode, img):
        gLabUtls(runmode, img)
    
if __name__ == '__main__':
    arakneguideLab().start()

Especially this line: <Image>/GTK/Guides lab...", "RGB*, GRAY*", PLUGIN, plug_params,[])

Such that I got (get in 2.8) the GTK tab!!!!

How to do that in 2.10,22 ??? if at all?

Will stay a while with 2.8

Greets
Peter
Reply


Messages In This Thread
[split] Installing Python scripts - by opaPeter - 11-10-2020, 09:10 AM
RE: [split] Installing Python scripts - by Ofnuts - 11-10-2020, 11:22 PM
RE: [split] Installing Python scripts - by opaPeter - 11-12-2020, 10:02 AM
RE: [split] Installing Python scripts - by Ofnuts - 11-13-2020, 11:31 AM

Forum Jump: