__revision__ = "$Revision$"

from textprogress import TextProgress
try:
    import qt
except ImportError:
    pass # import QtProgress will cause an error
else:
    from qtprogress import QtProgress

__revision__ = "$Revision$"

from textprogress import TextProgress
import sys

if 'qt' in sys.modules.keys():
    from qtprogress import QtProgress

Check to see if qt is loaded; if so, export QtProgress class
Check to see if qt is loaded; if so, export QtProgress class

