May-26-2022, 04:49 PM
I recommend against trying to use qt. There is no magic bullet there that will make this task any easier. Stick with tkinter or pygame and work on your program design. Start with something really simple. Start with printing "Button 1" when GPIO.input(button1) is pressed. Work on that program until it only prints "Button 1" one time for each press/release (holding the button a long time should be exactly the same as a quick click).