QRadioButton is a PyQt5.QtWidgets module that implements a selectable button that can be toggled on or off. The setEnabled method is used to indicate whether the RadioButton is active or not. If it is set to true, the RadioButton can be selected, otherwise it cannot be selected.
This code creates a new RadioButton with label "Option 1" and checks if it is enabled. If it is, the variable is_enabled will be True, otherwise it will be False.
Package Library:
PyQt5.QtWidgets
Python QRadioButton.setEnabled - 34 examples found. These are the top rated real world Python examples of PyQt5.QtWidgets.QRadioButton.setEnabled extracted from open source projects. You can rate examples to help us improve the quality of examples.