mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 08:22:24 -04:00
remove progress debugging
This commit is contained in:
parent
f13e3fd33d
commit
afb334c89f
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue