Dec-27-2017, 01:55 PM
Why not just create a GUI?
• Have a picture of a punching bag at rest.
• Have event handlers that calls a function when you press a certain key. This could be replace later on.
• Replace picture of a bag being hit.
• Place a for loop and have the punching bag animate (Optional)
• After a certain period have a picture of a punching bag at rest.
Ref:
https://projects.raspberrypi.org/en/proj...-with-guis, see picture widgets. (uses guizero)
http://effbot.org/tkinterbook/tkinter-ev...ndings.htm (uses tkinter)
• Have a picture of a punching bag at rest.
• Have event handlers that calls a function when you press a certain key. This could be replace later on.
• Replace picture of a bag being hit.
• Place a for loop and have the punching bag animate (Optional)
• After a certain period have a picture of a punching bag at rest.
Ref:
https://projects.raspberrypi.org/en/proj...-with-guis, see picture widgets. (uses guizero)
http://effbot.org/tkinterbook/tkinter-ev...ndings.htm (uses tkinter)
When my code doesn't work I don't know why **think** and when my code works I don't know why **think**