Re: [Gimp-user] gimpfu calling xsane
David Gowers wrote: > What happens if you type > > xsane (run_mode = 0) Oh yes, that works. At least it shows the xsane dialog but it does not return anything apart from an execution error. I originally intended to control xsane with a script, but it seems that the xsane plug-in is not ready for that. Ciao Andreas ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] gimpfu calling xsane
Hi, On Mon, 2008-11-10 at 12:47 +, Chris Mohler wrote: > If I try calling "pdb.xsane()" or "pdb.xsane(0)" fron the python-fu > console, I get: "extension 'xsane' aborted before sending its > extension_ack message" > > Not even sure if that's helpful. I've never tried calling an external > program through the pdb before... Yes you did. All plug-ins are external programs. Looks like the xsane plug-in installs itself as an extension instead of as a plug-in. That might be what the plug-in author intended to do, but more likely it is just plain wrong. This is explained in http://developer.gimp.org/api/2.0/libgimp/libgimp-gimp.html#gimp-install-procedure I guess that the xsane plug-in needs to be fixed. Sven ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] gimpfu calling xsane
What happens if you type xsane (run_mode = 0) ??? (you can use this trick to trigger interactive calling for all PDB functions that support it) David -- Reticience and self-censorship is a farce. The deceiver does not himself know the truth, anything that he holds back he holds back not only from others but from himself. Fuck censorship. "I yam what I yam." ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] gimpfu calling xsane
On Mon, Nov 10, 2008 at 12:17 PM, Andreas Matthias <[EMAIL PROTECTED]> wrote: > Chris Mohler wrote: > >> On Mon, Nov 10, 2008 at 5:52 AM, Andreas Matthias >> <[EMAIL PROTECTED]> wrote: >>> I'm trying to write a python script that opens the xsane dialog. >>> But the example script below does not work. Any idea what's wrong? >> >> I don't find xsane in the pdb. Have you looked in Help->Procedure Browser? > > Yes, I have. It's there. And it's coming from > /usr/lib/gimp/2.0/plug-ins/xsane which is a link to /usr/bin/xsane. > > Running my script doesn't produce any error (warning) messages. It > just stops after displaying "start foobar()". If I try calling "pdb.xsane()" or "pdb.xsane(0)" fron the python-fu console, I get: "extension 'xsane' aborted before sending its extension_ack message" Not even sure if that's helpful. I've never tried calling an external program through the pdb before... Chris ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] gimpfu calling xsane
Chris Mohler wrote: > On Mon, Nov 10, 2008 at 12:17 PM, Andreas Matthias > <[EMAIL PROTECTED]> wrote: >> Chris Mohler wrote: >> >>> On Mon, Nov 10, 2008 at 5:52 AM, Andreas Matthias >>> <[EMAIL PROTECTED]> wrote: I'm trying to write a python script that opens the xsane dialog. But the example script below does not work. Any idea what's wrong? >>> >>> I don't find xsane in the pdb. Have you looked in Help->Procedure Browser? >> >> Yes, I have. It's there. And it's coming from >> /usr/lib/gimp/2.0/plug-ins/xsane which is a link to /usr/bin/xsane. >> >> Running my script doesn't produce any error (warning) messages. It >> just stops after displaying "start foobar()". > > If I try calling "pdb.xsane()" or "pdb.xsane(0)" fron the python-fu > console, I get: "extension 'xsane' aborted before sending its > extension_ack message" Here (gimp-2.4.2, xsane-0.996) the console just stalls. No error message, no prompt, not responding to button clicks. Maybe xsane is not meant to be called through the pdb? Ciao Andreas ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] gimpfu calling xsane
Chris Mohler wrote: > On Mon, Nov 10, 2008 at 5:52 AM, Andreas Matthias > <[EMAIL PROTECTED]> wrote: >> I'm trying to write a python script that opens the xsane dialog. >> But the example script below does not work. Any idea what's wrong? > > I don't find xsane in the pdb. Have you looked in Help->Procedure Browser? Yes, I have. It's there. And it's coming from /usr/lib/gimp/2.0/plug-ins/xsane which is a link to /usr/bin/xsane. Running my script doesn't produce any error (warning) messages. It just stops after displaying "start foobar()". Ciao Andreas ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] gimpfu calling xsane
On Mon, Nov 10, 2008 at 5:52 AM, Andreas Matthias <[EMAIL PROTECTED]> wrote: > I'm trying to write a python script that opens the xsane dialog. > But the example script below does not work. Any idea what's wrong? Hi Andreas, I don't find xsane in the pdb. Have you looked in Help->Procedure Browser? Chris ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
[Gimp-user] gimpfu calling xsane
I'm trying to write a python script that opens the xsane dialog. But the example script below does not work. Any idea what's wrong? Ciao Andreas #! /usr/bin/env python from gimpfu import * def foobar(*args): print "start foobar()" pdb.xsane() print "end foobar()" register( "run_xsane", "", "", "", "", "", "/Xtns/Foobar", "", [], [], foobar ) main() ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user