Skip to content

Issue with save function #3

@tvoirand

Description

@tvoirand

Hi,

Thank you for this project !

I am getting errors when trying to use the save function.

The code below:

from processing_py import *
app = App(100, 100) 
app.stroke(255, 255, 255) 
app.background(0, 0, 0) 
app.line(0, 0, 50, 50)
app.redraw()
app.save("test.png")

Returns a NameError:

Starting App...
>> [Jython] Created!
>> NameError("name 'test' is not defined",)

And the code below:

from processing_py import *
app = App(100, 100)
app.stroke(255, 255, 255) 
app.background(0, 0, 0)
app.line(0, 0, 50, 50)
app.redraw()
app.save("/path/to/project/test.png")

Returns a SyntaxError:

>> [Jython] Created!
>> SyntaxError("no viable alternative at input '/'", ('<string>', 1, 5, 'save(/path/to/project/test.png)\n'))

Any hint on what is going wrong ?

Here is my config:

  • mac OS X 10.10.5
  • java version "1.6.0_65"
  • python v3.7.9
  • processing-py 0.3.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions