from gi.repository import Gtk

class MyDialog(Gtk.Dialog):
    def __init__(self):
        Gtk.Dialog.__init__(self,
                            title='Test',
                            buttons=(Gtk.STOCK_OK, Gtk.ResponseType.OK))

    def do_response(self, response):
        print "response"

if __name__ == '__main__':
    dia = MyDialog();
    dia.show()
    Gtk.main()


