progressmonitor/__init__.py
def update(self, units: int=1, message: str=None):
        """Increment the monitor with N units worked and an optional message"""
        if self.total is None:
            raise Exception("Cannot call progressmonitor.update before calling begin")
        self.worked = min(self.total, self.worked+units)
        if message:
            self.message = message
        for listener in self.listeners:
            listener(self)
def update(self, units: int=1, message: str=None):
        if self.total is None:
            raise Exception("Cannot call progressmonitor.update before calling begin")
        self.worked = min(self.total, self.worked+units)
        if message:
            self.message = message
        for listener in self.listeners:
            listener(self)
def update ( self , units : int = 1 , message : str = None ) : if self . total is None : raise Exception ( "Cannot call progressmonitor.update before calling begin" ) self . worked = min ( self . total , self . worked + units ) if message : self . message = message for listener in self . listeners : listener ( self )
Increment the monitor with N units worked and an optional message
Increment the monitor with N units worked and an optional message