From 0302eaa22eb855656f65300c4353909c6a78c667 Mon Sep 17 00:00:00 2001 From: _VIFEXTech Date: Mon, 31 Jul 2023 16:21:49 +0800 Subject: [PATCH] fix(examples): fix crash caused by typos (#4419) Signed-off-by: FASTSHIFT --- examples/get_started/lv_example_get_started_2.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/get_started/lv_example_get_started_2.py b/examples/get_started/lv_example_get_started_2.py index b608dd8b5..7d3cefe32 100644 --- a/examples/get_started/lv_example_get_started_2.py +++ b/examples/get_started/lv_example_get_started_2.py @@ -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()