#!/usr/bin/env python


import sys

import gtk
import glib


def test_present(window):
    sys.stdout.write('presenting window\n')
    sys.stdout.flush()
    window.present()
    return True


if __name__ == '__main__':
    window = gtk.Window()
    window.show()
    glib.timeout_add(3000, test_present, window)
    gtk.main()
