Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/data/en/tutorials/Tutorial_07_gtk_basic_form.py
blob: bcff13c0c84d6228170cb0769877acce48deaeec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
from gi.repository import Gtk

class PyApp(Gtk.Window):
    def __init__(self):
        super(PyApp, self).__init__()
        self.set_title("Hello World!!")
        self.connect("destroy", Gtk.main_quit)
        self.set_size_request(250, 150)
        self.set_position(Gtk.WIN_POS_CENTER)
        self.show()

PyApp()
Gtk.main()