'A widget processing state has changed (progressBarInit/Finished)'

def __on_processing_state_changed(self, state):

    widget = self.sender()
    try:
        node = self.node_for_widget(widget)
    except KeyError:
        return
    if state:
        self.__widget_processing_state[widget] |= self.ProcessingUpdate
    else:
        self.__widget_processing_state[widget] &= (~ self.ProcessingUpdate)
    self.__update_node_processing_state(node)
