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

"screen" is not defined VS code pgzrun library #326

Open
elis7angelo opened this issue Feb 10, 2024 · 1 comment
Open

"screen" is not defined VS code pgzrun library #326

elis7angelo opened this issue Feb 10, 2024 · 1 comment

Comments

@elis7angelo
Copy link

i wanted to code a game in pgzrun and all is working fine but it shows a warning that screen is not defined and i would like to know why is that because i have everything for it to work and i cant find what is wrong with it.

error

@hjlarrea
Copy link

hjlarrea commented Apr 8, 2024

Check this comment. Basically by introducing these two lines you can get rid of the warning:

import pgzero.screen
screen : pgzero.screen.Screen

Intellisense/autocomplete will not work though. Another possibility it is what is described here, but it didn't work for me.

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

No branches or pull requests

2 participants