On Wed, 1 Sep 2010 14:46:17 -0500
"Edward K. Ream" <[email protected]> wrote:

> > c:\python26\python.exe inkcall.py \
> >  --inkscape "c:\Program Files (x86)\Inkscape\inkscape.exe" \
> >  --png c:\output.png  
> 
> Now the message is: No such file or directory: c:\\output.png

Oh, didn't see it properly the first time.  It needs a screenshot filename as 
an argument.  Try c:\python26\python.exe inkcall.py --help

Really I wasn't expecting you'd use it from the command line (although I want 
to fix any problems there).  This script is working for me from Leo (in Ubuntu, 
admittedly).

    import PyQt4.QtGui
    app = g.app.gui.qtApp
    pix = PyQt4.QtGui.QPixmap
    w = pix.grabWindow(app.activeWindow().winId())
    path = 'test.png'
    w.save(path,'png')
    
    import inkcall
    reload(inkcall)  # for dev. env.
    ik = inkcall.InkCall()
    ik.make_svg(path, ['test this'], [33])
    ik.edit_svg(path)
    ik.make_png(path)

There does still seem to be something wrong with the --png flag - I'll install 
leo in win 7 py 2.6 and see what happens.

I never could get lxml installed in win 7 py 2.7, fine in 2.6 with your 
lxml==2.2.4.

Cheers -Terry

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to