Simple windowed application: Difference between revisions

Moved "nim_init()" before creation of window (avoids lot of error messages in terminal window).
m (→‎{{header|Phix}}: added syntax colouring the hard way, phix/basics)
(Moved "nim_init()" before creation of window (avoids lot of error messages in terminal window).)
Line 2,125:
<lang nim>
import gtk2
 
nim_init()
 
var
Line 2,137 ⟶ 2,139:
l.setText "You clicked me " & $counter & " times"
 
nim_init()
win.setTitle "Click me"
vbox.add label
Anonymous user