dev/gtk/ GtkExamples1
Simple empty window
#!/usr/bin/env python3
idea = """
one thread sends a message to queue every second.
the other thread runs the glib main loop.
the loop has an idle process that checks for messages in the queue.
if it finds a message, it prints it out.
"""
import sys
import gi
gi.require_version("Gtk","3.0")
from gi.repository import Gtk
window = Gtk.Window(title="Hello World")
window.show()
window.connect("destroy",Gtk.main_quit)
Gtk.main()