enhanced bind and unbind with double bind call on two tkinter widgets for some CTk widgets

This commit is contained in:
Tom Schimansky
2022-10-04 16:55:34 +02:00
parent 8b85225133
commit 2964b39410
5 changed files with 34 additions and 41 deletions

View File

@ -127,6 +127,9 @@ class App(customtkinter.CTk):
self.progressbar_1.configure(mode="indeterminnate")
self.progressbar_1.start()
r = self.logo_label.bind("<Button-1>", lambda e: print("click"))
print(r, type(r))
def open_input_dialog(self):
dialog = customtkinter.CTkInputDialog(master=self, text="Type in a number:", title="CTkInputDialog")
print("CTkInputDialog:", dialog.get_input())
@ -142,7 +145,6 @@ class App(customtkinter.CTk):
def sidebar_button_callback(self):
print("sidebar_button click")
self.entry.delete(0, tkinter.END)
print(self.textbox.get("0.0", "end"))
def on_closing(self, event=0):
self.destroy()