In this article we will see how we can increase the size of separator at the desired index in the combo box. By default there is no separator. Separator is the black line in between two items, in order to add he separator we use
insertSeparator method. Below is representation of how combo box items with a separator looks like –
In order to increase the size of separator we have to use the
insertSeparator method multiple time with the index value equal to desired index or greater than that this will increase the size of separator of given index.
Argument : It takes integer as argument i.e index
Action performed : It will add separator at the given index and using same statement with same index will increase the size of seprator
Note : Index value must be greater or equal to the desired index.
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.