MCPcopy
hub / github.com/PyQt5/PyQt / __init__

Method __init__

QGridLayout/HotPlaylist.py:148–166  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

146class Window(QScrollArea):
147
148 def __init__(self, *args, **kwargs):
149 super(Window, self).__init__(*args, **kwargs)
150 self.resize(800, 600)
151 self.setFrameShape(self.NoFrame)
152 self.setWidgetResizable(True)
153 self.setAlignment(Qt.AlignCenter)
154 self._loadStart = False
155 # 网格窗口
156 self._widget = GridWidget(self)
157 self._widget.loadStarted.connect(self.setLoadStarted)
158 self.setWidget(self._widget)
159 # 连接竖着的滚动条滚动事件
160 self.verticalScrollBar().actionTriggered.connect(self.onActionTriggered)
161 # 进度条
162 self.loadWidget = QSvgWidget(self,
163 minimumHeight=120,
164 minimumWidth=120,
165 visible=False)
166 self.loadWidget.load('Data/Svg_icon_loading.svg')
167
168 def setLoadStarted(self, started):
169 self._loadStart = started

Callers 1

__init__Method · 0.45

Calls 4

resizeMethod · 0.95
setWidgetMethod · 0.80
GridWidgetClass · 0.70
loadMethod · 0.45

Tested by

no test coverage detected