def CheckAbort(obj, event):
    foo = renWin.GetEventPending()
    if (foo != 0):
        renWin.SetAbortRender(1)
def CheckAbort(obj, event):
    foo = renWin.GetEventPending()
    if (foo != 0):
        renWin.SetAbortRender(1)