MCPcopy Index your code
hub / github.com/PyQt5/PyQt / __init__

Method __init__

QProgressBar/MetroCircleProgress.py:171–184  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

169class Window(QWidget):
170
171 def __init__(self, *args, **kwargs):
172 super(Window, self).__init__(*args, **kwargs)
173 self.resize(800, 600)
174 layout = QVBoxLayout(self, spacing=0)
175 layout.setContentsMargins(0, 0, 0, 0)
176 layout.addWidget(MetroCircleProgress(self))
177 layout.addWidget(MetroCircleProgress(self, radius=10))
178 layout.addWidget(MetroCircleProgress(self, styleSheet="""
179 qproperty-color: rgb(255, 0, 0);
180 """))
181 layout.addWidget(MetroCircleProgress(self, styleSheet="""
182 qproperty-color: rgb(0, 0, 255);
183 qproperty-backgroundColor: rgba(180, 180, 180, 180);
184 """))
185
186
187if __name__ == '__main__':

Callers 1

__init__Method · 0.45

Calls 3

resizeMethod · 0.95
MetroCircleProgressClass · 0.85
addWidgetMethod · 0.80

Tested by

no test coverage detected