From e8735ff6d263fd5897f754aeb6f3136d65adbd3a Mon Sep 17 00:00:00 2001 From: DonRenando Date: Sat, 4 Apr 2015 20:28:02 +0200 Subject: [PATCH] c'est une turie ! afk work --- client/view/start.py | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/client/view/start.py b/client/view/start.py index 2640ef4..3914c0c 100755 --- a/client/view/start.py +++ b/client/view/start.py @@ -78,6 +78,10 @@ class start(QtGui.QDialog): def ShowMessageOK(self, txt): self.message_buffer += '
'+ self.htmlToText(txt) +' ' + + def ShowMessageInfo (self, txt) : + self.message_buffer += '
'+ self.htmlToText(txt) +' ' + def ShowMessageAsText(self, txt): @@ -86,6 +90,22 @@ class start(QtGui.QDialog): self.message_buffer += '
'+ txt +' ' + if txt.split(" ")[0] == "IS_NOW_DISABLE": + self.ShowMessageInfo(txt.split(" ")[1]+" is Away From Keyboard") + self.ui.listNames.clear() + self.ui.listNames_2.clear() + self.s.send("/userlist".encode()) + self.s.send("/userlistaway".encode()) + + + if txt.split(" ")[0] == "IS_NOW_ENABLE": + self.ShowMessageInfo(txt.split(" ")[1]+" is Back !!") + self.ui.listNames.clear() + self.ui.listNames_2.clear() + self.s.send("/userlist".encode()) + self.s.send("/userlistaway".encode()) + + if txt.split(" ")[0] == "SUCCESSFUL_LOGOUT" : self.ShowMessageOK("Sucessful logout !") @@ -93,8 +113,10 @@ class start(QtGui.QDialog): if txt.split(" ")[0] == "SUCC_DISABLED" : self.ShowMessageOK("You are AFK !") self.ui.listNames.clear() + self.ui.listNames_2.clear() + self.s.send("/userlist".encode()) self.s.send("/userlistaway".encode()) - #listNames_2 + if txt.split(" ")[0] == "SUCC_ENABLED" : self.ShowMessageOK("You are back !")