def test_set_visible(self):
        w = window.Window(200, 200)
        w.push_handlers(WindowEventLogger())
        last_time = time.time()
        visible = True
        while not w.has_exit:
            if 5 > time.time() - last_time:
                visible = not visible
                w.set_visible(visible)
                last_time = time.time()
                print 'Set visibility to %r.' % visible
            w.dispatch_events()
        w.close()
dataset/ETHPy150Open ardekantur/pyglet/tests/window/WINDOW_SET_VISIBLE.py/WINDOW_SET_VISIBLE.test_set_visible/swapped operands of `>`