In this article we will see how we can check if the items of the combo box from the drop down box is hidden or not i.e from the view box. In order to do so we have to get the view object of combo box and had to check it.
In order to check if the items are hidden or not we have to do the following steps –
1. Create Combo box
2. Add items to the combo box
3. Get the view object of combo box
4. Check if the view object is hidden or not
5. Create label to show the hidden status
# getting view part of combo box view = self.combo_box.view() # checking if the view object is hidden or not status = view.isHidden()
Below is the implementation
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