Skip to content

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

Open

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)`

Activity

  1. arloft commented on Dec 5, 2018

    @arloft
    Author

    Removed 'setcolor' from the script and the program ran, opening a white window.
    Was expecting Scratch-like blocks to build programs, disappointed to see it's apparently just a library like pygame. If you guys could build a Scratch-like environment to build programs that are Python programs, and export them to an standalone program, you'd really be on to something.
    Maybe I'm missing something, and if so, please tell me. I'm looking for Scratch-like environments that let a user build a program that can be run outside the build environment (if these magical unicorns even exist).

  2. BookOwl commented on Dec 6, 2018

    @BookOwl
    Member

    Yeah, this was meant to be transition library for Scratch programmers who wanted to move to Python but still be able to easily use graphics. Also, I don't think any of us really work on this anymore (I know I haven't in a couple of years).

    I think the closest thing to what you want that exists right now is Snap! and then using this tool to create a stand alone program. If you have any questions about Snap! @bharvey would be the best one to ask in the official Snap! forum thread. Just tell them BookOwl sent you.

  3. BookOwl commented on Dec 6, 2018

    @BookOwl
    Member

    I'l leave this open because the documentation is wrong and that is a bug.

  4. skistaddy commented on Jan 9, 2019

    @skistaddy
    Contributor

    It was the initial goal to create the program you are talking about, but I think everyone eventually moved on from slither to better things.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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