Skip to content

Commit 1d66512

Browse files
authored
Update custom_tkinter.py
1 parent 324603e commit 1d66512

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/custom_tkinter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from async_tkinter_loop.mixins import AsyncCTk
1111

1212

13-
class App(customtkinter.CTk, AsyncCTk): # <-- add AsyncCTk as the second parent class
13+
class App(customtkinter.CTk, AsyncCTk): # <-- add AsyncCTk as a second parent class
1414
def __init__(self):
1515
super().__init__()
1616
self.geometry("600x500")
@@ -23,7 +23,7 @@ def __init__(self):
2323
self.label = customtkinter.CTkLabel(self, text="")
2424
self.label.grid(row=0, column=1, padx=20, pady=10)
2525

26-
@async_handler # <-- decorate an asynchronous method or function with @async_handler decorator
26+
@async_handler # <-- add @async_handler decorator to use the method as a handler
2727
async def button_click(self):
2828
i = 0
2929
while True:

0 commit comments

Comments
 (0)