Statistics: Posted by Dragonfire — 12 Nov 2014, 20:20
# Triggers
actionStats.triggered.connect(self.viewStats)
actionSelectAvatar.triggered.connect(self.selectAvatar)
actionReplay.triggered.connect(self.viewReplay)
actionVaultReplay.triggered.connect(self.viewVaultReplay)
actionJoin.triggered.connect(self.joinInGame)
#actionInvite.triggered.connect(self.invite)
Second one (the wtf one):
I can sort the users when you connect, but I don't see where the call for showing the list is made.
So to be able to sort by country I've just modified the __lt__ function in chatter.py .
So I look in all the files of the source code of the client where the "__lt__" is written, to find it and to see who is calling it to sort the users in the list of users of chat).
So __ge__ is calling it. and that's all. and no one is calling __ge__(did the same, looked in all the files of the source code of the client), what kind of sorcery is that?
Obviously, I'm wrong the __lt__ or/and __gt__ is called, it's not a useless code, and if it was the case it shouldn't have an impact on the lobby(the list of users shouldn't be sorted), but, uh, dunno what to think about that.
def setup(self):
if not self.private:
# Non-query channels have a sorted nicklist
self.nickList.sortItems(Chatter.SORT_COLUMN)
Statistics: Posted by rootbeer23 — 12 Nov 2014, 20:04
def pressed(self, item):
(..)
actionSortUsersByCountry = QtGui.QAction("Sort users by country", menu)
(..)
menu.addAction(actionSortUsersByCountry)
Statistics: Posted by odin002 — 12 Nov 2014, 19:20