why does Pygame script wait for ESC key press on auto start
Posted: Sun Dec 11, 2016 6:09 pm
Hi,
I am currenty using Pixel.
We have created a script to let the user select a set of photos to be displayed via a set of buttons to be used in a local museum.
The script is based on pygame library.
if we run the script from a terminal window from the home directory by using a command
python StevesFolder/script.py
the script runs and goes straight to our first window and we can select and navigate through the menus.
We are currently trying to run the script on start up by editing /etc/profile and adding the following command at the bottom
sudo python /home/pi/StevesFolder/script.py
On power up we get a black screen until the escape key is pressed, then our first window is displayed and everything works.
We do not want to have a keyboard connected with the final product so has anyone got any idea as to what is happening?
We have also tried other approaches such as a sytemd file to get the script to run on power up, none of which have worked.
thanks
Steve
I am currenty using Pixel.
We have created a script to let the user select a set of photos to be displayed via a set of buttons to be used in a local museum.
The script is based on pygame library.
if we run the script from a terminal window from the home directory by using a command
python StevesFolder/script.py
the script runs and goes straight to our first window and we can select and navigate through the menus.
We are currently trying to run the script on start up by editing /etc/profile and adding the following command at the bottom
sudo python /home/pi/StevesFolder/script.py
On power up we get a black screen until the escape key is pressed, then our first window is displayed and everything works.
We do not want to have a keyboard connected with the final product so has anyone got any idea as to what is happening?
We have also tried other approaches such as a sytemd file to get the script to run on power up, none of which have worked.
thanks
Steve