-
Hardware: ESP32-S3-Touch-LCD-4.3
It's a really weird issue with an easy workaround (adding a separate keyboard for that text area) but I just want to get this system up and going and use it a bit. The related code is in applications.py, lines 100~116. The other code works just fine. The weird code part doesn't even output errors as well. I also tried running it asynchronously with an AsyncJob that constantly sets the input area's text value to the keyboard input area's text value, and nothing works. It just seems like it's clogged up somehow... no errors, no stack overflows, no memory leaks and stuff, just... stops. If anyone knows anything on scheduling threads and design patterns, please, I am in need of some degree of help. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
The weird issue is fixed. def DiceParserInput_eventhandler(event_struct):
target = event_struct.get_target()
event = event_struct.code
if event == lv.EVENT.CLICKED:
print("Editing dice parser text")
# help(event_struct.get_target_obj())
pdaos.invoke_keyboard(event_struct.get_target_obj().get_text())
globals.set_temp_variable("ui_DiceParserInput", event_struct.get_target_obj())
globals.set_temp_variable("diceParserFocused", True)
elif globals.get_temp_variable("diceParserFocused") and not pdaos.is_keyboard_focused():
def set_inputfield_text(*arg):
print("Woah")
# pdaos.revoke_keybaord()
globals.get_temp_variable("ui_DiceParserInput").set_text(pdaos.get_keyboard_text())
globals.remove_temp_variable("ui_DiceParserInput")
globals.set_temp_variable("diceParserFocused", False)
globals.remove_temp_variable("diceParserFocused")
micropython.schedule(set_inputfield_text, None)
return Instead of calling it directly, using |
Beta Was this translation helpful? Give feedback.
The weird issue is fixed.