In this article we will see how we make combo box to show its elements without clicking on it. In order to do this we will use
Syntax : combo_box.showPopup()
Argument : It takes no argument
Action performed : It will show the pop up elements
Steps for implementation :
1. Create a combo box
2. Add items t the combo box
3. Create a push button
4. Add action to the push button such that when it get pressed method should get called
5. Inside the method show the pop up with the help of
Below is the implementation –
After clicking on the push button
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.