GUI component interaction: Difference between revisions

Changed behavior if an invalid value is entered: restore the previous value.
(Other corrections to compile with Nim 1.4.)
(Changed behavior if an invalid value is entered: restore the previous value.)
Line 2,249:
valu = parseInt($entry_fld.get_text())
except ValueError:
valu = 0discard
entry_fld.set_text($valu)
#signal_handler_unblock(entry_fld, chngd_txt_hndler)
Anonymous user