User talk:ILMostro

From ArchWiki
Revision as of 04:26, 14 February 2018 by ILMostro (talk | contribs) (Python GTK+)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Python GTK+

GTK Window Example

hello_world.py

#!/usr/bin/env python
import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
win = Gtk.Window()
win.connect("delete-event", Gtk.main_quit)
win.set_title("Hello, World!!!")
win.show_all()
Gtk.main()