Helpviewer/Download/DownloadUtilities.py

changeset 945
8cd4d08fa9f6
parent 791
9ec2ac20e54e
child 1509
c0b5e693b0eb
equal deleted inserted replaced
944:1b59c4ba121e 945:8cd4d08fa9f6
2 2
3 # Copyright (c) 2010 - 2011 Detlev Offenbach <detlev@die-offenbachs.de> 3 # Copyright (c) 2010 - 2011 Detlev Offenbach <detlev@die-offenbachs.de>
4 # 4 #
5 5
6 from PyQt4.QtCore import QCoreApplication 6 from PyQt4.QtCore import QCoreApplication
7
7 8
8 def timeString(timeRemaining): 9 def timeString(timeRemaining):
9 """ 10 """
10 Module function to format the given time. 11 Module function to format the given time.
11 12
23 remaining = QCoreApplication.translate("DownloadUtilities", 24 remaining = QCoreApplication.translate("DownloadUtilities",
24 "%n seconds remaining", "", QCoreApplication.UnicodeUTF8, seconds) 25 "%n seconds remaining", "", QCoreApplication.UnicodeUTF8, seconds)
25 26
26 return remaining 27 return remaining
27 28
29
28 def dataString(size): 30 def dataString(size):
29 """ 31 """
30 Module function to generate a formatted size string. 32 Module function to generate a formatted size string.
31 33
32 @param size size to be formatted (integer) 34 @param size size to be formatted (integer)

eric ide

mercurial