From 8a953e0e99c0bd94a462fd0e30386163c65c9cf4 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 26 Feb 2009 17:54:03 +0900 Subject: [PATCH] ensure process bar pops up quickly --- ankiqt/ui/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ankiqt/ui/utils.py b/ankiqt/ui/utils.py index 612d06dd7..d44887459 100644 --- a/ankiqt/ui/utils.py +++ b/ankiqt/ui/utils.py @@ -206,15 +206,15 @@ class ProgressWin(object): self.diag.setAutoClose(False) self.diag.setAutoReset(False) self.diag.setMinimumDuration(0) + self.diag.show() self.counter = min self.min = min self.max = max self.lastTime = time.time() self.app = QApplication.instance() - self.diag.show() - self.app.processEvents() if max == 0: self.diag.setLabelText(_("Processing...")) + self.app.processEvents() def update(self, label=None, value=None): self.app.processEvents()