fix(examples): fix crash caused by typos (#4419)

Signed-off-by: FASTSHIFT <vifextech@foxmail.com>
This commit is contained in:
_VIFEXTech
2023-07-31 16:21:49 +08:00
committed by GitHub
parent db0dbee435
commit 0302eaa22e

View File

@@ -20,9 +20,9 @@ class CounterBtn():
if code == lv.EVENT.CLICKED:
self.cnt += 1
# Get the first child of the button which is the label and change its text
label = btn.get_child(0)
label.set_text("Button: " + str(self.cnt))
# Get the first child of the button which is the label and change its text
label = btn.get_child(0)
label.set_text("Button: " + str(self.cnt))
counterBtn = CounterBtn()