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

Method init

QGridLayout/Lib/CoverItemWidget.py:33–44  ·  view source on GitHub ↗
(self, cover_path, playlist_title, playlist_author, play_count,
             play_url, cover_url, img_path)

Source from the content-addressed store, hash-verified

31 self.setupUi(self)
32
33 def init(self, cover_path, playlist_title, playlist_author, play_count,
34 play_url, cover_url, img_path):
35 self.img_path = img_path
36 self.cover_url = cover_url
37 # 图片label
38 self.labelCover.init(cover_path, play_url, play_count)
39
40 # 歌单
41 self.labelTitle.setText(playlist_title)
42
43 # 作者
44 self.labelAuthor.setText(playlist_author)
45
46 def setCover(self, path):
47 self.labelCover.setCoverPath(path)

Callers 1

_makeItemMethod · 0.95

Calls 1

setTextMethod · 0.45

Tested by

no test coverage detected