Created
December 8, 2014 22:37
-
-
Save Miuler/9c894fcf9efd0369bb8b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Gtk = imports.gi.Gtk; | |
const GLib = imports.gi.GLib; | |
// Initialize the gtk | |
Gtk.init(null, 0); | |
let mwindow = new Gtk.Window ({type : Gtk.WindowType.TOPLEVEL}); | |
let label = new Gtk.Label ({label : "Hello World"}); | |
// Set the window title | |
mwindow.title = "Hello World!"; | |
mwindow.connect ("destroy", function(){Gtk.main_quit()}); | |
// Add the label | |
mwindow.add (label); | |
// Show the widgets | |
label.show (); | |
mwindow.show(); | |
Gtk.main(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment