|
|
|
@ -60,7 +60,7 @@ org.kde.kdialog.ProgressDialog'
|
|
|
|
|
self.label ="LOGINKDIALOG=%d" % os.getpid()
|
|
|
|
|
pipe = popen2.Popen4(self.execenv + " %s " % self.label +\
|
|
|
|
|
'/usr/bin/kdialog --progressbar "%s" %d' % (\
|
|
|
|
|
" "*len(title),self.max))
|
|
|
|
|
" "*(len(title)+20),self.max))
|
|
|
|
|
if pipe.poll() != 0:
|
|
|
|
|
time.sleep(0.5)
|
|
|
|
|
if pipe.poll() == 0:
|
|
|
|
@ -184,12 +184,13 @@ class RsyncProgressBar(ProgressBar):
|
|
|
|
|
continue
|
|
|
|
|
q = self.receiverre.search(s)
|
|
|
|
|
if q:
|
|
|
|
|
if not self.copyStarting:
|
|
|
|
|
self.shutdownDialog()
|
|
|
|
|
self.openDialog(self.secondtitle)
|
|
|
|
|
self.copyStarting = True
|
|
|
|
|
self.value = int(q.groups()[0])
|
|
|
|
|
newpercent = self.value * 100 / self.maximum
|
|
|
|
|
if oldpercent < newpercent:
|
|
|
|
|
if not self.copyStarting:
|
|
|
|
|
self.copyStarting = True
|
|
|
|
|
self.setTitle(self.secondtitle)
|
|
|
|
|
oldpercent = newpercent
|
|
|
|
|
self.setValue(oldpercent)
|
|
|
|
|
|
|
|
|
|