+ 1

How to remove current selection box from an item in listbox and add the selection box to other item ? [Solved]

Any help is much appreciated !

7th Sep 2021, 5:37 PM
Abhay
Abhay - avatar
1 Resposta
+ 2
Edit: I found out the solution! 1) curselection method can be used to get list of indices of currently selected item. 2)clear_selection can be used to remove selection by passing index as argument. 3)configure method can be used to set the active element style to none using activestyle attribute. 4)set_selection can be used to set selection on other item by passing index as argument. 5)activate will make the item active by passing index as argument. 6) configuring the activestyle to dotbox will set the dotbox around the active element. ps: For me default activestyle was dotbox .
7th Sep 2021, 7:18 PM
Abhay
Abhay - avatar