Skip to content

py5_tools.get_screenshot() seems to make the Sketch hang when called from the event function key_pressed() #99

@hx2A

Description

@hx2A

get_screenshot() adds a hook that gets called after the next iteration of draw(). It won't get the screenshot before then. The get_screenshot() method will wait for its screenshot, but somehow this prevents the animation thread from running. The Sketch gets caught in a Catch 22.

If this can't be fixed it should at least detect it and throw an error, alerting the user that the function is being used incorrectly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions