OiO.lk English python How to bind a double click function to a single CTk Widget
python

How to bind a double click function to a single CTk Widget


I have a problem with my code (code is below). I have a main window with customtkinter, where a CTkListbox is. I want, that when I double-click on one item, the next window is open. But in the second window, which is a CTkToplevel, is this double click function also, everywhere! So anywhere I double-click, the same window opens again. If it’s helpful; I use macOS. Thanks for every help:

listbox = CTkListbox(app, text_color=theme_change)
listbox.bind("<Double-1>", lambda event: regal_callback)
listbox.pack(fill="both", expand=True, padx=10, pady=10)



You need to sign in to view this answers

Exit mobile version