I have been trying to figure out why this won`t work. Its suppose to launch the progress bar, But it simply wont, any ideas. I tried on 18.5 , 19.0 python 2.7 and 3
it prints correct , but no UI ?
num_tasks=100files=[]foriinrange(0,num_tasks):files.append("filename_"+str(i))withhou.InterruptableOperation("Performing Tasks",open_interrupt_dialog=True)asop:forfi,filenameinenumerate(files):op.updateLongProgress(fi/float(len(files)-1),filename)print("Iteration_"+str(fi)+" "+filename)''' for i in files: percent = float(i) / float(num_tasks) operation.updateProgress(percent) '''
you'd usually use it for operations that take a bit longer time your finishes super quickly that the progress bar doesn't have time to show up try this as a placeholder, it includes both progressbars for global and suboperation
works just fine, lol, I feel defeated I guess then my next question would be why does it take so long to show up. and if there is a flag to make it show up faster.