|
|
1.1 ! root 1: #!/usr/bin/env python ! 2: ! 3: import gi ! 4: gi.require_version('Gtk', '3.0') ! 5: from gi.repository import Gtk ! 6: ! 7: class AppUI(): ! 8: def __init__(self): ! 9: self.window = Gtk.Window(Gtk.WindowType.TOPLEVEL) ! 10: self.window.connect("destroy", Gtk.main_quit) ! 11: ! 12: label = Gtk.Label(label="Hello World!") ! 13: self.window.add(label) ! 14: ! 15: def run(self): ! 16: self.window.show_all() ! 17: Gtk.main() ! 18: ! 19: app = AppUI() ! 20: app.run()
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.