For #25952 - Fixed PyQt compatibility issue

Some old versions of PyQt don't have the Q*Animation classes that were introduced in Qt 4.6