GUI component interaction: Difference between revisions

Other corrections to compile with Nim 1.4.
(Updated to compile with Nim 1.4.)
(Other corrections to compile with Nim 1.4.)
Line 2,195:
{{libheader|Gtk2}}
<lang nim>import
gtk2, gdk2, glib2, strutils, random
var valu: int = 0
Line 2,248:
try:
valu = parseInt($entry_fld.get_text())
except EInvalidValueValueError:
valu = 0
entry_fld.set_text($valu)
Anonymous user