Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In Thonny, single line setup() functions with one space between setup() and draw() trips up py5 #117

Closed
hx2A opened this issue Aug 12, 2022 · 1 comment · Fixed by #118
Closed

Comments

@hx2A
Copy link
Collaborator

hx2A commented Aug 12, 2022

For example:

def setup():
    size(200, 200)

def draw():
    background(0)

This give an error that size cannot be used here. Somehow this is tripping up the split setup code.

Also, if those two functions are reversed, there is an additional error.

@hx2A hx2A mentioned this issue Aug 12, 2022
@hx2A hx2A closed this as completed in #118 Aug 12, 2022
@hx2A
Copy link
Collaborator Author

hx2A commented Aug 12, 2022

This is a serious enough of an error to warrant a release in the near future. I'll make a few other small bug fixes and then do a release within the next week or two.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant