GNOME Gtk+ camelCase bindings for NodeJS
npm install node-gtk-ccPlease note this project is currently in an _alpha_ state and it needs more contributors.
If you have installed gtk3 you should be already OK and off via npm install node-gtk
Once installed, you can import various namespaces as following:
``js
#!/usr/bin/env node
var
GNode = require('node-gtk'),
Gtk = GNode.importNS('Gtk'),
win
;
GNode.startLoop();
Gtk.init(0, null);
win = new Gtk.Window({
title: 'node-gtk',
window_position: Gtk.WindowPosition.CENTER
});
win.connect('show', Gtk.main);
win.connect('destroy', Gtk.main_quit);
win.set_default_size(200, 80);
win.add(new Gtk.Label({label: 'Hello Gtk+'}));
win.show_all();
``