Re: scripting problems

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Feb 18, 2008 at 01:27:36PM -0800, Al Niessner wrote:
> 
> Dang! I tried pdb.gimp-quit() like in script-fu and it, of course, did
> not work. I then browsed http://developer.gimp.org/api/2.0/index.html
> looking for a quit or some type of control over gimp and did not see
> anything.

Not sure why you expected pdb.gimp-quit() to work, "-" isn't a valid
character in symbol names in python. That gets parsed as:

    pdb.gimp - quit()

Or "subtract the result of calling the function 'quit' from the value of
'pdb.gimp'"

As Sven said, pdb.gimp_quit(0) works, as well as pdb["gimp-quit"](0)

> Personally, pdb.gimp_quit(0) makes just as much sense as gimp.exit() as
> long as it noted somewhere.

I've just added gimp.exit() to SVN. It takes an optional boolean for
force, and defaults to False.

-Yosh
_______________________________________________
Gimp-developer mailing list
Gimp-developer@xxxxxxxxxxxxxxxxxxxxxx
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer

[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux