# GObject Introspection APIs are available from imports.gi.Modulename Gtk = imports.gi.Gtk # JavaScript imports happen via imports.filename, where filename.js # is assumed to be available in module/ folder Gtk.init 0, null win = new Gtk.Window type: Gtk.WindowType.TOPLEVEL win.set_border_width 10 win.connect "destroy", (widget) -> Gtk.main_quit() button = new Gtk.Button label: "Hello, world" button.connect "clicked", -> button.set_label "Bar" win.add button button.show() win.show() Gtk.main()