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@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer

Reply via email to