Skip to content

Instantly share code, notes, and snippets.

@onlyjus
onlyjus / Custom Progress Bar
Created October 17, 2014 18:01
Custom progress bar with cancel button and label overlay.
class ProgressBar(QtGui.QWidget):
"""
Custom progress bar hack that allows text over a 'busy' progress bar.
Also adds a cancel button.
"""
cancel = QtCore.Signal(object)
def __init__(self, parent = None):
QtGui.QWidget.__init__(self, parent)
# Progress Bar