Skip to content

Defining Functions and Executing them Externally #3

@mindinsomnia

Description

@mindinsomnia

Love this project, it looks like it could be perfect for my needs.

I read through the docs and I couldn't find an answer to the question I have.

Is it possible, and if so how would one go about doing so, for a user script to define a function and for that function to be executed externally in Node.js.

For example, could I have an adder script like so:

# Click handler
def onClick():
    print("Clicked");

And then call that function from Node.js:

// Call event handler
program.execute("onClick");

Or something along those lines?
I couldn't find anything in the docs about this.
Thanks for the help!

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