sidpy.io.interface_utils.progress_bar

sidpy.io.interface_utils.progress_bar(title='Progress', start=0, stop=100)[source]

Opens a progress bar window

Parameters:
  • title (str, optional. Default = 'Progress') – Title for the progress window

  • start (int, optional. Default = 0) – Start value

  • stop (int, optional. Default = 100) – End value

Returns:

progress – Progress dialog

Return type:

QtWidgets.QProgressDialog

Examples

>>> import sidpy
>>> progress = sidpy.interface_utils.progress_bar('progress', 1,50)
>>> for count in range(50):
>>>      progress.setValue(count)