MCPcopy
hub / github.com/tonquer/JMComic-qt / SwitchCurrent

Method SwitchCurrent

src/component/widget/comment_widget.py:34–54  ·  view source on GitHub ↗
(self, **kwargs)

Source from the content-addressed store, hash-verified

32 self.selectWidget.hide()
33
34 def SwitchCurrent(self, **kwargs):
35 bookId = kwargs.get("bookId", "")
36 refresh = kwargs.get("refresh")
37 if not bookId and refresh:
38 self.pushButton.hide()
39 self.commentLine.hide()
40 self.bookId = ""
41 self.ClearCommentList()
42 self.listWidget.UpdatePage(1, 1)
43 self.LoadComment()
44 return
45
46 if not bookId:
47 return
48 self.pushButton.setVisible(True)
49 self.commentLine.setVisible(True)
50 self.bookId = bookId
51 self.ClearCommentList()
52 self.listWidget.UpdatePage(1, 1)
53 self.LoadComment()
54 pass
55
56 def ClearCommentList(self):
57 self.listWidget.SetWheelStatus(True)

Callers 1

FinishedMethod · 0.45

Calls 4

ClearCommentListMethod · 0.95
LoadCommentMethod · 0.95
UpdatePageMethod · 0.80
hideMethod · 0.45

Tested by

no test coverage detected