Open ohshitgorillas opened 1 month ago
@ohshitgorillas Drag and drop is not implemented in this ctk listbox, but it can be achieved if you modify the list button by binding different events. I will try to add this feature in next version.
As a related enhancement, can you also please add .nearest()
?
I'm trying to create a drag-and-drop GUI interface featuring several CTkListboxes, however, I can't get the drag-drop functionality to work. I've bound the items to
<ButtonPress-1>
but the items never register as being clicked. I get no output from "on_click" print statements unless the click is out of bounds and the response is "Nearest index: None"This works perfectly with a regular tk listbox (and the code is much neater due to the presence of
.nearest()
), but I'm not sure why the CTkListbox doesn't work.Note that on_drop is probably broken, haven't gotten to the point of being able to debug it yet.