#! /usr/bin/env python3

from gi.repository import Gtk

class Test(Gtk.Window):
    def __init__(self, *args, **kwargs):
        super(Test, self).__init__(*args, **kwargs)
        self.set_app_paintable(True)

    def do_draw(self, cr):
        cr.save()
        cr.set_source_rgb(1, 0, 0)
        cr.paint()
        cr.restore()

        print(repr(Gtk.Window.do_draw))

        # Does not work
        super(Test, self).do_draw(cr)
        # Works
        #Gtk.Window.do_draw(self, cr)

t = Test()

t.show_all()

Gtk.main()
