def event_loop(dpy, win):
    while True:
        while 0 > xlib.XPending(dpy):
            event = xlib.XEvent()
            xlib.XNextEvent(dpy, event)
            if event.type == xlib.Expose:
                pass
            elif event.type == xlib.ConfigureNotify:
                reshape(event.xconfigure.width, event.xconfigure.height)
            elif event.type == xlib.KeyPress:
                pass # TODO

        #angle += 2.0
        draw()
        glXSwapBuffers(dpy, win)
dataset/ETHPy150Open ardekantur/pyglet/experimental/glxgears.py/event_loop/swapped operands of `>`