Make the new object app and call the method run to run the application:
let app = new HelloWorld(); app.application.run(ARGV);
Save the script as helloworld.js, run chmod +x helloworld.js to mark it executable, and run it with ./helloworld.js.
This window is generated from the Glade file and linked to Gtk events. You now have a fully functional Gtk application!
This work is licensed under a.
As a special exception, the copyright holders give you permission to copy, modify, and distribute the example code contained in this document under the terms of your choosing, without restriction.
Got a comment? Spotted an error? Found the instructions unclear? Send feedback about this page.