comparison frontends/wix/main_window.py @ 75:7322a41f8a8e

Basic user joined/left management - plugin XEP-0045: user joined./left signal is sended - wix: user are adder/removed when these signals are catched
author Goffi <goffi@goffi.org>
date Mon, 29 Mar 2010 16:54:53 +1100
parents f271fff3a713
children 9681f18d06bd
comparison
equal deleted inserted replaced
74:6e3a06b4dd36 75:7322a41f8a8e
160 def newMessage(self, from_jid, msg, type, to_jid, profile): 160 def newMessage(self, from_jid, msg, type, to_jid, profile):
161 QuickApp.newMessage(self, from_jid, msg, type, to_jid, profile) 161 QuickApp.newMessage(self, from_jid, msg, type, to_jid, profile)
162 162
163 def roomJoined(self, room_id, room_service, room_nicks, user_nick, profile): 163 def roomJoined(self, room_id, room_service, room_nicks, user_nick, profile):
164 super(MainWindow, self).roomJoined(room_id, room_service, room_nicks, user_nick, profile) 164 super(MainWindow, self).roomJoined(room_id, room_service, room_nicks, user_nick, profile)
165 self.chat_wins[room_id+'@'+room_service].setType("group")
166 self.chat_wins[room_id+'@'+room_service].setPresents([user_nick]+room_nicks)
167 165
168 def showAlert(self, message): 166 def showAlert(self, message):
169 # TODO: place this in a separate class 167 # TODO: place this in a separate class
170 popup=wx.PopupWindow(self) 168 popup=wx.PopupWindow(self)
171 ### following code come from wxpython demo 169 ### following code come from wxpython demo