#NEWLINE# @ property #NEWLINE# def progress( self ) : #NEWLINE# #INDENT# 'Get the download progress in percent.' #NEWLINE# try : #NEWLINE# #INDENT# size = self . _fields [ 'sizeWhenDone' ] . value #NEWLINE# left = self . _fields [ 'leftUntilDone' ] . value #NEWLINE# return ( ( 100.0 * ( size - left ) ) / float ( size ) ) #NEWLINE# #UNINDENT# except ZeroDivisionError : #NEWLINE# #INDENT# return 0.0