def is_timer_running(timer):
    if hasattr(timer, 'isActive'):
        # The Qt backend's IsRunning does not work correctly.
        return timer.isActive()
    else:
        return timer.IsRunning()
Written to work around a pyface bug.
dataset/ETHPy150Open enthought/mayavi/integrationtests/mayavi/test_mlab.py/is_timer_running