GUI component interaction: Difference between revisions
Content deleted Content added
Line 3,471: | Line 3,471: | ||
fn (mut app App) btn_click_inc(mut btn ui.Button) { |
fn (mut app App) btn_click_inc(mut btn ui.Button) { |
||
for value in app.counter { |
for value in app.counter { |
||
if value.is_digit() == false { |
if value.is_digit() == false { |
||
Line 3,486: | Line 3,485: | ||
fn (mut app App) btn_click_ran(mut btn ui.Button) { |
fn (mut app App) btn_click_ran(mut btn ui.Button) { |
||
ui.message_box("Will jump to random number between 1 and 100.") |
ui.message_box("Will jump to random number between 1 and 100.") |
||
app.counter = rand.int_in_range(1, 100) or {0}.str() |
app.counter = rand.int_in_range(1, 100) or {0}.str() |