File:  [HATARI the Atari ST Emulator] / hatari / python-ui / tests / gtk-hello-world.py
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 9 08:58:37 2019 UTC (7 years, 3 months ago) by root
Branches: hatari, MAIN
CVS tags: hatari02210, hatari02200, HEAD
hatari 2.2.0

#!/usr/bin/env python

import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk

class AppUI():
    def __init__(self):
        self.window = Gtk.Window(Gtk.WindowType.TOPLEVEL)
        self.window.connect("destroy", Gtk.main_quit)

        label = Gtk.Label(label="Hello World!")
        self.window.add(label)

    def run(self):
        self.window.show_all()
        Gtk.main()

app = AppUI()
app.run()

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.