From 924715cce193aea652eefd4b452091386cb5a78a Mon Sep 17 00:00:00 2001 From: mark Date: Tue, 9 May 2023 22:18:39 +0200 Subject: [PATCH] changed while to loop in example .mers files --- gui.mers | 2 +- musicdb_remote.mers | 2 +- thread.mers | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gui.mers b/gui.mers index 8f0244e..e4da470 100755 --- a/gui.mers +++ b/gui.mers @@ -11,7 +11,7 @@ second_button = column.gui_add(Button: "This is a second button.") text_state = -2 second_text = column.gui_add(Text: "press the button above to remove this text!") -while { +loop { for event gui_updates() { switch! event { ButtonPressed([int ...]) { diff --git a/musicdb_remote.mers b/musicdb_remote.mers index 86edb1b..ec0e6d1 100755 --- a/musicdb_remote.mers +++ b/musicdb_remote.mers @@ -165,7 +165,7 @@ thread(() { queue_list_inner.gui_remove() }) -while { +loop { for event gui_updates() { switch! event { ButtonPressed([int ...]) { diff --git a/thread.mers b/thread.mers index 702e130..bf1317d 100755 --- a/thread.mers +++ b/thread.mers @@ -23,7 +23,7 @@ calculator = (max int) { slow_calculation_thread = calculator.thread(if fake_delay 10 else 20000000) // every second, print the progress. once it reaches 100%, stop -while { +loop { sleep(1) println("{0}%".format(progress.to_string())) progress.eq(100) // break from the loop