Open a text editor and paste in the lines of code. The complete script is available in the.
Create an object using your class and call the run() method:
Import gi.Gtk for Gtk functions. As both version 3.0 and 4.0 may be installed, make sure that the desired version is imported first.
imports.gi.versions.Gtk = '3.0'; const Gtk = imports.gi.Gtk;
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.