[Gimp-user] gimpfu calling xsane

Andreas Matthias andreas.matthias at gmail.com
Sun Nov 9 11:01:32 PST 2008


Chris Mohler wrote:

> On Mon, Nov 10, 2008 at 12:17 PM, Andreas Matthias
> <andreas.matthias at gmail.com> wrote:
>> Chris Mohler wrote:
>> 
>>> On Mon, Nov 10, 2008 at 5:52 AM, Andreas Matthias
>>> <andreas.matthias at gmail.com> 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



More information about the Gimp-user mailing list