def METHOD_NAME(self, progress):
    if not self.taskbar:
        return
    if self.window_handle is None:
        if not self.restart_warning:
            return
        logger.warning("No window handle available, a restart max fix this")
        self.restart_warning = False
        return
    if 0 < progress < 1:
        self.taskbar.SetProgressState(self.window_handle, TBPF_NORMAL)
        self.taskbar.SetProgressValue(self.window_handle,
                int(progress * 100), 100)
    else:
        self.taskbar.SetProgressState(self.window_handle, TBPF_NOPROGRESS)