Home > other >  Information on how to extract the selected radiobutton in pyqt5
Information on how to extract the selected radiobutton in pyqt5

Time:10-25

Information on how to extract the selected radiobutton in pyqt5
[code=python]
Self. RadioButton_SA1. SetText (_translate (" MainWindow ", "A1"))
Self. RadioButton_SA2. SetText (_translate (" MainWindow ", "A2"))
Self. RadioButton_SA3. SetText (_translate (" MainWindow ", "A3"))
Self. RadioButton_SA4. SetText (_translate (" MainWindow ", "A4"))
Self. RadioButton_SB1. SetText (_translate (" MainWindow ", "B1"))
Self. RadioButton_SB2. SetText (_translate (" MainWindow ", "B2"))
Self. RadioButton_SB3. SetText (_translate (" MainWindow ", "B3"))
Self. RadioButton_SB4. SetText (_translate (" MainWindow ", "B4"))
Self. RadioButton_SC1. SetText (_translate (" MainWindow ", "C1"))
Self. RadioButton_SC2. SetText (_translate (" MainWindow ", "C2"))
Self. RadioButton_SC3. SetText (_translate (" MainWindow ", "C3"))
Self. RadioButton_SC4. SetText (_translate (" MainWindow ", "C4"))
Self. Label_fasong. SetText (_translate (" MainWindow ", "do you want to choose the sender is:"))
Self. RadioButton_A1. SetText (_translate (" MainWindow ", "A1"))
Self. RadioButton_A2. SetText (_translate (" MainWindow ", "A2"))
Self. RadioButton_A3. SetText (_translate (" MainWindow ", "A3"))
Self. RadioButton_A4. SetText (_translate (" MainWindow ", "A4"))
Self. RadioButton_B1. SetText (_translate (" MainWindow ", "B1"))
Self. RadioButton_B2. SetText (_translate (" MainWindow ", "B2"))
Self. RadioButton_B3. SetText (_translate (" MainWindow ", "B3"))
Self. RadioButton_B4. SetText (_translate (" MainWindow ", "B4"))
Self. RadioButton_C1. SetText (_translate (" MainWindow ", "C1"))
Self. RadioButton_C2. SetText (_translate (" MainWindow ", "C2"))
Self. RadioButton_C3. SetText (_translate (" MainWindow ", "C3"))
Self. RadioButton_C4. SetText (_translate (" MainWindow ", "C4"))

CodePudding user response:

The self. The sender ()
Or the custom was clicked method
  • Related