Akascape / CTkListbox

A simple listbox for customtkinter (extenstion/add-on)
MIT License
130 stars 14 forks source link

Noticed a recursive call on listbox select #51

Open infiniteTesch opened 4 months ago

infiniteTesch commented 4 months ago

I've added this code to overcome it:

def on_listbox_select(self, selected_option):
    self.counter += 1
    self.index = self.listbox.curselection()
    if self.counter % 2 == 0:
        print("Counter = ",self.counter)
        self.add_index_to_selection(self.index)
    else:
        return