Orange的扩展插件Widgets开发(五)-Utilities
Utilities Progress Bar Operations that take more than a split second indicate their progress with a progress bar and in the title bar of the widget’s window. There are three mechanisms for implementing this. Context handlers The recommended and the simplest approach is to wrap the code into context handler progressBar . If the operation consists of a known number of steps that take similar time, the context handler can be used as follows: with self.progressBar(n_steps) as progress: for k in range(n_steps): self.do_some_processing() progress.advance() In general, the argument of self