Skip to content Skip to sidebar Skip to footer

Qt Python Gui Crashes On Button Click

The code is smaller version I put together to demonstrate what I am trying to do. I just need to get information from a QButtonGroup of radio buttons. Specifically the text of whic

Solution 1:

You need to define the slot with a self argument:

    def printText(self, button):
        print(button.text())

Post a Comment for "Qt Python Gui Crashes On Button Click"