(self)
| 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): |
nothing calls this directly
no test coverage detected