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

Touchscreen slide between info, hourly and daily page instead of keyboard. #32

Open
TH3-G3NTL3M3N opened this issue Jan 29, 2020 · 3 comments

Comments

@TH3-G3NTL3M3N
Copy link

I would like to switch between pages just by swiping on the touchscreen, instead of using a keyboard. I tried to change the code to make it work, but I have no idea to use touchscreen, because I think I can't use the "event.key" like if it was a keyboard. Does anyone knows how to do this?

@genebean
Copy link
Owner

I would actually like this too. My most recent setup has a touchscreen so I was already planning to look into this.

Sent with GitHawk

@ronstar2820
Copy link

I had this code in my previous version to toggle between main and vacation home weather. Something like this may work for you.

if event.type == pygame.MOUSEBUTTONUP:
if zip_code == '85260':
zip_code = '60450'
myDisp.UpdateWeather()
else:
zip_code = '85260'
myDisp.UpdateWeather()

@TH3-G3NTL3M3N
Copy link
Author

Good! Trying this soon and coming back to you guys if its working!

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

No branches or pull requests

3 participants