Something
public text v1 · immutable def DownloadBegin(self, signal):
fraction = (100 / len(self.in_use))
oldvalue = 0
newvalue = oldvalue + fraction
for i in self.in_use:
self.gittext = i
self.currentvalue = oldvalue + fraction
oldvalue = self.currentvalue
command = 'git://git.compiz-fusion.org' + i
print command
process = subprocess.Popen(["git", "clone", command])
while process.Poll() is None:
pass
else:
self.ProgressGit.set_value(self.currentvalue)
self.ProgressGit.set_format_string(i + " %p%")