remove progress debugging

This commit is contained in:
Damien Elmes 2009-01-17 23:01:22 +09:00
parent f13e3fd33d
commit afb334c89f

View file

@ -191,7 +191,6 @@ class ProgressWin(object):
def __init__(self, parent, max=100, min=0, title=None): def __init__(self, parent, max=100, min=0, title=None):
if not title: if not title:
title = "Anki" title = "Anki"
print parent, max, min, title
self.diag = QProgressDialog("", "", min, max, parent) self.diag = QProgressDialog("", "", min, max, parent)
self.diag.setWindowTitle(title) self.diag.setWindowTitle(title)
self.diag.setCancelButton(None) self.diag.setCancelButton(None)
@ -208,7 +207,7 @@ class ProgressWin(object):
def update(self, label=None, value=None): def update(self, label=None, value=None):
self.app.processEvents() self.app.processEvents()
print self.min, self.counter, self.max, label, time.time() - self.lastTime #print self.min, self.counter, self.max, label, time.time() - self.lastTime
self.lastTime = time.time() self.lastTime = time.time()
if label: if label:
self.diag.setLabelText(label) self.diag.setLabelText(label)