Skip to content
New issue

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

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

Already on GitHub? # to your account

Trying to introduce screen blanking #43

Open
COVID-19-CTI opened this issue Dec 22, 2021 · 0 comments
Open

Trying to introduce screen blanking #43

COVID-19-CTI opened this issue Dec 22, 2021 · 0 comments

Comments

@COVID-19-CTI
Copy link

I want to modify the first screen authorize.py ( With the spinning logo ) so that after a period of time if no event is registered the screen goes blank ( turn off all sprites ) but continues to look for a MOUSEBUTTONDOWN / MOUSEBUTTONUP to return to normal.

I thought that this would just be a matter of a simple loop , and say after X many times set inside of authorize.py handleEvents :

for sprite in self.layer1: sprite.visible = False
for sprite in self.layer2: sprite.visible = False

So far I have not been able to make this work.

The normal Xwindows screensaver ( via openbox ) does not work because the loop that constantly redraws the screen defeats it , and it just flashes.

I'm thinking either a loop to turn off both sprties after X many cycles, or create an all black sprite that is visible ( blanking out everything ) after X many cycles.

I'm a reasonable n00b to Python , so please forgive any blindingly obvious answers I might have overlooked.

Thanks ,

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

No branches or pull requests

1 participant