ProgressDialog — pyqtgraph 0.9.8 documentation

### Navigation

- index
- modules |
- next |
- previous |
- pyqtgraph 0.9.8 documentation »
- API Reference »
- Pyqtgraph’s Widgets »

# ProgressDialog

class `pyqtgraph.` `ProgressDialog`(labelText, minimum=0, maximum=100, cancelText='Cancel', parent=None, wait=250, busyCursor=False, disable=False)

  Extends QProgressDialog for use in ‘with’ statements.

  Example:

      with ProgressDialog("Processing..", minVal, maxVal) as dlg:
          # do stuff
          dlg.setValue(i)   ## could also use dlg += 1
          if dlg.wasCanceled():
              raise Exception("Processing canceled by user")

  `__init__`(labelText, minimum=0, maximum=100, cancelText='Cancel', parent=None, wait=250, busyCursor=False, disable=False)

    Arguments: |
    labelText | (required)
    cancelText | Text to display on cancel button, or None to disable it.
    minimum |
    maximum |
    parent |
    wait | Length of time (im ms) to wait before displaying dialog
    busyCursor | If True, show busy cursor until dialog finishes
    disable | If True, the progress dialog will not be displayed and calls to wasCanceled() will always return False. If ProgressDialog is entered from a non-gui thread, it will always be disabled.

### Navigation

- index
- modules |
- next |
- previous |
- pyqtgraph 0.9.8 documentation »
- API Reference »
- Pyqtgraph’s Widgets »