In this article we will see how we can select the item with the help of its content. By default when we create a combo box it shows the first item to be selected but we can change it, in order to do this we will use
Syntax : combo_box.setCurrentText(item)
Argument : It takes string as argument
Note : item should belong to the combo box item list
Action performed : It will select the given item
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