hyperspyui.threaded module

Created on Mon Nov 17 14:16:41 2014

@author: Vidar Tonaas Fauske

class hyperspyui.threaded.ProgressThreaded(parent, run, finished=None, label=None, cancellable=False, title='Processing', modal=True, generator_N=None)

Bases: hyperspyui.threaded.Threaded

close()
display()
class hyperspyui.threaded.Threaded(parent, run, finished=None)

Bases: PyQt5.QtCore.QObject

Executes a user provided function in a new thread, and pops up a QProgressBar until it finishes. To have an updating progress bar, have the provided function be a generator, and yield completion rate in percent (int from 0 to 100).

add_to_pool()
errorString(error)
pool = []
remove_from_pool()
run()
class hyperspyui.threaded.Worker(run)

Bases: PyQt5.QtCore.QObject

error
finished
process()
progress
hyperspyui.threaded.tr(text)