def progress(self, err): self.w.errorBox.set("Error: %.7f" % err) self.w.errorBox._nsObject.setNeedsDisplay_(True) pairs = len(self.prespaced["caps"]) + len( self.prespaced["caplower"]) + len(self.prespaced["lower"]) self.w.bar.increment(1.0 / (3 * pairs)) NSRunLoop.mainRunLoop().runUntilDate_( NSDate.dateWithTimeIntervalSinceNow_(0.0001))
def set(self, value): """ Set the value of the progress bar to **value**. *Only available in determinate progress bars.* """ self._nsObject.setDoubleValue_(value) self._nsObject.display() if osVersionCurrent >= osVersion10_11: NSRunLoop.mainRunLoop().runUntilDate_(NSDate.dateWithTimeIntervalSinceNow_(0.0001))
def increment(self, value=1): """ Increment the progress bar by **value**. *Only available in determinate progress bars.* """ self._nsObject.incrementBy_(value) self._nsObject.display() if osVersionCurrent >= osVersion10_11: NSRunLoop.mainRunLoop().runUntilDate_(NSDate.dateWithTimeIntervalSinceNow_(0.0001))
def increment(self, value=1): """ Increment the progress bar by **value**. *Only available in determinate progress bars.* """ self._nsObject.incrementBy_(value) self._nsObject.display() if osVersionCurrent >= osVersion10_11: NSRunLoop.mainRunLoop().runUntilDate_( NSDate.dateWithTimeIntervalSinceNow_(0.0001))
def set(self, value): """ Set the value of the progress bar to **value**. *Only available in determinate progress bars.* """ self._nsObject.setDoubleValue_(value) self._nsObject.display() if osVersionCurrent >= osVersion10_11: NSRunLoop.mainRunLoop().runUntilDate_( NSDate.dateWithTimeIntervalSinceNow_(0.0001))