Skip to content

Intro program on help (help/index.html) error: "Stage object has no attribute 'SetColor'" #96

@arloft

Description

@arloft

Trying to figure out how to use this, and it's not very clear.
Tried the starter program located on index.html in the 'help' folder. Fails with error 'Stage' object has no attribute 'SetColor'.

I've installed slither with pip3. Don't care about SVG at the moment so skipped ImageMagick.
Pasted the code in help/index.html into a .py file, saved it to my desktop, then tried to run it from the terminal with 'python3 start.py' (name of file containing intro code). Fails with error stated above.
Is there a newer intro program? If so, can it be added to the README file, so it's easy to find?

slither intro program error message

Code taken directly from 'help/index.html':
`import slither
slither.slitherStage.setColor(40, 222, 40)

slither.setup() # Begin slither

def loop():
pass

slither.runMainLoop(loop)`

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions