2006-07-26 15:38:54 +02:00
|
|
|
from gettext import gettext as _
|
2006-06-22 21:59:38 +02:00
|
|
|
|
|
|
|
from sugar.activity.Activity import Activity
|
|
|
|
from sugar.chat.BuddyChat import BuddyChat
|
|
|
|
|
|
|
|
class ChatActivity(Activity):
|
|
|
|
def __init__(self, service):
|
2006-07-26 15:38:54 +02:00
|
|
|
Activity.__init__(self)
|
|
|
|
self.set_title(_('Private chat'))
|
|
|
|
|
2006-06-22 21:59:38 +02:00
|
|
|
self._service = service
|
2006-06-23 00:07:54 +02:00
|
|
|
self._chat = BuddyChat(self._service)
|
2006-07-26 15:38:54 +02:00
|
|
|
self.add(self._chat)
|
|
|
|
self._chat.show()
|
2006-06-22 21:59:38 +02:00
|
|
|
|
2006-06-23 00:07:54 +02:00
|
|
|
def recv_message(self, message):
|
|
|
|
self._chat.recv_message(message)
|