In this article we will see how we can block the signals of the button, blocking signals means stopping the button to do his assigned task. It is used to make a button deactive.
In order to do this we will use
blockSignals method which belongs to
Syntax : button.blockSignals(True)
Argument : It takes bool as argument.
Action performed: It blocks the signal of button.
When this button will be clicked nothing will happen.
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course.