diff options
author | papoteur-mga <yves.brungard_git@gadz.org> | 2014-10-27 16:37:36 +0100 |
---|---|---|
committer | papoteur-mga <yves.brungard_git@gadz.org> | 2014-10-27 16:37:36 +0100 |
commit | 3e7cd496046cfd109c278bd0e9488e2b75bc280b (patch) | |
tree | df5ccb803dce5de5cf08e50f9c5e7abab5a9c0f4 /mageiaSync | |
parent | 3b65c69af520b266880d3437debf26b3f553290f (diff) | |
download | MageiaSync-3e7cd496046cfd109c278bd0e9488e2b75bc280b.tar MageiaSync-3e7cd496046cfd109c278bd0e9488e2b75bc280b.tar.gz MageiaSync-3e7cd496046cfd109c278bd0e9488e2b75bc280b.tar.bz2 MageiaSync-3e7cd496046cfd109c278bd0e9488e2b75bc280b.tar.xz MageiaSync-3e7cd496046cfd109c278bd0e9488e2b75bc280b.zip |
Correction of the transmission of the file size
Formatting thousand with space
Reset the remaining field when stopped
Diffstat (limited to 'mageiaSync')
-rw-r--r-- | mageiaSync/mageiaSyncExt.py | 1 | ||||
-rw-r--r-- | mageiaSync/mageiasync.py | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/mageiaSync/mageiaSyncExt.py b/mageiaSync/mageiaSyncExt.py index fd57ea3..e93ab1e 100644 --- a/mageiaSync/mageiaSyncExt.py +++ b/mageiaSync/mageiaSyncExt.py @@ -193,6 +193,7 @@ class syncThread(QThread): self.speedSignal.emit(0) self.progressSignal.emit(0) self.sizeSignal.emit(0) + self.remainSignal.emit("") self.stopped=False self.list=[] self.quit() diff --git a/mageiaSync/mageiasync.py b/mageiaSync/mageiasync.py index b675f63..07e32da 100644 --- a/mageiaSync/mageiasync.py +++ b/mageiaSync/mageiasync.py @@ -142,9 +142,9 @@ class IsosViewer(QMainWindow, mageiaSyncUI.Ui_mainWindow): # Update the speed field self.speedLCD.display(value) - def setSize(self, value): + def setSize(self, size): # Update the size field - self.Lsize.setText(str(value)+" bytes") + self.Lsize.setText('{:n}'.format(size).replace(","," ")+" bytes") def setRemain(self,remainTime): content=QtCore.QTime.fromString(remainTime,"h:mm:ss") |