diff --git a/tulip/fs/ex/buttons.py b/tulip/fs/ex/buttons.py index bcf0d427d..5d994a9b1 100644 --- a/tulip/fs/ex/buttons.py +++ b/tulip/fs/ex/buttons.py @@ -16,7 +16,6 @@ def cb(obj, code, ui_id): checkbox = obj print("checkbox %d now %s" % (ui_id, checkbox.get_state())) -tulip.ui_clear() tulip.ui_callback = cb diff --git a/tulip/macos/main.c b/tulip/macos/main.c index 2bca0915f..78f8dc828 100644 --- a/tulip/macos/main.c +++ b/tulip/macos/main.c @@ -69,7 +69,7 @@ STATIC uint emit_opt = MP_EMIT_OPT_NONE; // Make it larger on a 64 bit machine, because pointers are larger. // TODO - make this equivalent always with Tulip CC -long heap_size = 2 * 1024 * 1024 * (sizeof(mp_uint_t) / 4); +long heap_size = 4 * 1024 * 1024 * (sizeof(mp_uint_t) / 4); #endif // Number of heaps to assign by default if MICROPY_GC_SPLIT_HEAP=1 diff --git a/tulip/shared/py/ui.py b/tulip/shared/py/ui.py index 91ed42739..b9af6cdb4 100644 --- a/tulip/shared/py/ui.py +++ b/tulip/shared/py/ui.py @@ -447,7 +447,6 @@ def ui_text(ui_id=None, text=None, placeholder=None, x=0, y=0, w=None, h=None, b if text is not None: ta.set_text(text) if(one_line): ta.set_one_line(True) - current_uiscreen().add_to_kb(ta) if(ui_id is not None): ta.add_event_cb(lambda e: lv_callback(e, ui_id), lv.EVENT.VALUE_CHANGED, None) return ta