lately I started to work, for the first time, on a new project using the Raspberry Pi 4, Python and wxPython. I have started to create my GUI that will be controlled by a touch screen and some signals generated by some toggle switches and sensors that all are interfaced with my Pi GPIO. I took a look at wxPython API documentations to understand which event I should bind to my handler and I saw that I could use a custom events but I still do not understand how I can create them and link them to my external inputs.
For example : if my GPIO.input(15) is True, I get a change on my GUI (a change of the background colour) and if it is False I get my initial GUI.
Looking forward to receiving Your comments,