Statistics: Posted by Ze_PilOt — 23 Aug 2012, 11:27
Statistics: Posted by Myxir — 23 Aug 2012, 11:23
Statistics: Posted by Ze_PilOt — 22 Aug 2012, 20:02
def updateAvatar(self):
self.avatarTip = self.avatar["tooltip"]
url = self.avatar["url"]
avatarPix = util.respix(url)
if avatarPix :
self.avatarItem.setIcon(QtGui.QIcon(avatarPix))
self.avatarItem.setToolTip(self.avatarTip)
else :
if util.addcurDownloadAvatar(url, self.name) :
self.nam = QNetworkAccessManager()
self.nam.finished.connect(self.lobby.finishDownloadAvatar)
self.nam.get(QNetworkRequest(QtCore.QUrl(url)))
self.avatarItem.setToolTip(self.avatarTip)
def updateAvatar(self):
self.avatarTip = self.avatar["tooltip"]
url = self.avatar["url"]
avatarPix = util.respix(url)
if avatarPix :
self.avatarItem.setIcon(QtGui.QIcon(avatarPix))
self.avatarItem.setToolTip(self.avatarTip)
else :
if util.addcurDownloadAvatar(url, self.name) :
if [playeravatarnumber] == 1:
self.nam = QNetworkAccessManager()
self.nam.finished.connect(self.lobby.finishDownloadAvatar)
self.nam.get(QNetworkRequest(QtCore.QUrl(url)))
self.avatarItem.setToolTip(self.avatarTip)
# Avatar settings
if self.lobby.client.login != self.name:
actionChangeAvatarNumber.setDisabled(1)
# Actions for the Friend List
actionAddFriend = QtGui.QAction("Add friend", menu)
actionRemFriend = QtGui.QAction("Remove friend", menu)
# Don't allow self to be added or removed from friends
if self.lobby.client.login == self.name:
actionAddFriend.setDisabled(1)
actionRemFriend.setDisabled(1)
# Enable / Disable actions according to friend status
if self.lobby.client.isFriend(self.name):
actionAddFriend.setDisabled(1)
else :
actionRemFriend.setDisabled(1)
Statistics: Posted by Myxir — 22 Aug 2012, 18:51