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

Method SendCommentBack

src/component/widget/comment_widget.py:123–138  ·  view source on GitHub ↗
(self, raw)

Source from the content-addressed store, hash-verified

121 self.AddHttpTask(req.SendCommentReq2(self.bookId, data, self.cid), callBack=self.SendCommentBack)
122
123 def SendCommentBack(self, raw):
124 try:
125 QtOwner().CloseLoading()
126 st = raw["st"]
127 if st == Status.Ok:
128 self.ClearCommentList()
129 self.commentLine.setText("")
130 self.listWidget.UpdatePage(1, 1)
131 self.LoadComment()
132 QtOwner().CheckShowMsg(raw)
133 else:
134 QtOwner().CheckShowMsg(raw)
135
136 except Exception as es:
137 QtOwner().CloseLoading()
138 Log.Error(es)

Callers

nothing calls this directly

Calls 8

ClearCommentListMethod · 0.95
LoadCommentMethod · 0.95
QtOwnerClass · 0.90
setTextMethod · 0.80
UpdatePageMethod · 0.80
CheckShowMsgMethod · 0.80
ErrorMethod · 0.80
CloseLoadingMethod · 0.45

Tested by

no test coverage detected