PyQt5 – Adding action to the ComboBox
In this article we will see how we can add action to the combo box. Action is basically a method called by the combo box when it gets changes these changes can be new item get inserted by user or any item get selected by the user.
In order to do this we will use
Syntax : combo_box.activated.connect(self.do_something)
Argument : It takes method name which should get called as argument
Return : None
Below is the implementation
When we select any item this get printed
Something Something Something Something
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. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course