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

Method LoginSucBack

src/component/widget/navigation_widget.py:117–134  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

115 return
116
117 def LoginSucBack(self):
118 self.UpdateProxyName()
119 # QtOwner().owner.LoginSucBack()
120 if not QtOwner().user.isLogin:
121 return
122 # self.pushButton.hide()
123 user = QtOwner().user
124 self.levelLabel.setText("LV" + str(user.level) + "(" + str(user.exp) + "/" + str(user.nex_exp) + ")")
125 self.favorite.setText("(" + str(user.favorites) + "/" + str(user.canFavorites) + ")")
126 self.coins.setText(str(user.coin))
127 self.titleLabel.setText(str("("+user.title+")"))
128 self.nameLabel.setText(str(user.name))
129 config.LoginUserName = user.name.replace("@", "")
130 if user.imgUrl and config.IsLoadingPicture:
131 self.AddDownloadTask(user.imgUrl, "", completeCallBack=self.ShowUserImg)
132
133 self.pushButton.setText(Str.GetStr(Str.LoginOut))
134 self.AddHttpTask(req.GetDailyReq2(user.uid), self.GetSignDailyBack)
135 # self.AddHttpTask(req.GetUserInfoReq(), self.UpdateUserBack)
136
137 def HourTimeOut(self):

Callers

nothing calls this directly

Calls 6

UpdateProxyNameMethod · 0.95
QtOwnerClass · 0.90
setTextMethod · 0.80
GetStrMethod · 0.80
AddDownloadTaskMethod · 0.45
AddHttpTaskMethod · 0.45

Tested by

no test coverage detected