Window creation

Tk

require('Tk')
%s'MainWindow'.new
%S'Tk'.MainLoop

Gtk2

var gtk2 = require('Gtk2') -> init
var window = %s'Gtk2::Window'.new
window.signal_connect(destroy => { gtk2.main_quit })
window.show_all
gtk2.main

Last updated