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

Method __init__

QFlowLayout/HotPlaylist.py:131–149  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

129class Window(QScrollArea):
130
131 def __init__(self, *args, **kwargs):
132 super(Window, self).__init__(*args, **kwargs)
133 self.resize(800, 600)
134 self.setFrameShape(self.NoFrame)
135 self.setWidgetResizable(True)
136 self.setAlignment(Qt.AlignCenter)
137 self._loadStart = False
138 # 网格窗口
139 self._widget = GridWidget(self)
140 self._widget.loadStarted.connect(self.setLoadStarted)
141 self.setWidget(self._widget)
142 # 连接竖着的滚动条滚动事件
143 self.verticalScrollBar().actionTriggered.connect(self.onActionTriggered)
144 # 进度条
145 self.loadWidget = QSvgWidget(self,
146 minimumHeight=120,
147 minimumWidth=120,
148 visible=False)
149 self.loadWidget.load('Data/Svg_icon_loading.svg')
150
151 def setLoadStarted(self, started):
152 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