MCPcopy Create free account
hub / github.com/PyQt5/PyQt / _load

Method _load

QListWidget/HotPlaylist.py:75–80  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

73 QTimer.singleShot(1000, self._load)
74
75 def _load(self):
76 print("load url:", Url.format(self.Page * 35))
77 url = QUrl(Url.format(self.Page * 35))
78 req = QNetworkRequest(url)
79 req.setRawHeader(b"User-Agent", Agent)
80 self._manager.get(req)
81
82 def onFinished(self, reply):
83 # 请求完成后会调用该函数

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected