Исправлено центрирование диалогов с прогрессбаром

git-svn-id: http://svn.calculate.ru/calculate2/calculate-client/trunk@1094 c91db197-33c1-4113-bf15-f8a5c547ca64
develop
mhiretskiy 15 years ago
parent f5605ac564
commit c686d0688b

@ -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)

Loading…
Cancel
Save