Description
A user in the #help-with-circuitpython room recently was asking about how to combine this library with some other text scrolling example scripts so that it could switch back and forth between text and images.
Digging into it a bit while helping them I realized this library is taking over the screen because display
gets passed in as a parameter and then inside of the constructor calls display.show()
on it's own group. As far as I can tell there is no easy way for a user to then show something else and switch back to the slideshow.
I think there are a few possibilities for how Slideshow could be refactored to make it a bit easier to mix and mash it together with other things.
Perhaps there could be hide()
and show()
functions that can be used to temporarily disable and enable the slideshow visuals.
Or maybe there could be some optional parameter that would allow the Slideshow to generate its Group and return it to the user allowing them to get it onto the screen how they want (i.e. inside of a parent group that could then be swapped to other things and back). When in use it would prevent the Slideshow from calling display.show()
directly instead opting to let the user manage it.