sonist-gtk/window.py

20 lines
356 B
Python
Raw Normal View History

2023-08-17 00:06:21 +08:00
#!/usr/bin/env python3
import gi, sys, os
from pprint import pprint as print
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk, Gdk, GLib, GdkPixbuf
class SonistWindow(Gtk.Window):
def __init__(self):
Gtk.Window.__init__(self)
self.set_default_size(480, 320)
button = Gtk.Button()
self.add(button)
self.show_all()