Python - how to remove border around selected ListBox item?
The documentation by New Mexico Tech, which can be a good reference when working with Tkinter, lists the attributes for the Listbox
widget, among which activestyle
. This parameter refers to the box around the currently active (not necessarily selected) item, and can take the values underline
, dotbox
, and none
.
If you set activestyle
to none
, the dotted border will go away.