python-gtk-3-tutorial(1) Getting Started
Getting StartedFile:simple_example.py#!/usr/bin/pythonfrom gi.repository import Gtkwin = Gtk.Window()win.connect("delete-event", Gtk.main_quit)win.show_all()Gtk.main()Let me explain: