summaryrefslogtreecommitdiff
path: root/test.py
diff options
context:
space:
mode:
authorJohann Prieur <johann.prieur@gmail.com>2007-09-18 20:54:18 (GMT)
committerJohann Prieur <johann.prieur@gmail.com>2007-09-18 20:54:18 (GMT)
commit51686598336684bffdd546ba3222532b44b7e0a5 (patch)
treef17cb21e408085e17982375f91a13b59c57dba8e /test.py
parent4fcace5da8fcd04c7f8ff82695a345fc57219b1d (diff)
downloadpapyon-51686598336684bffdd546ba3222532b44b7e0a5.tar.gz
papyon-51686598336684bffdd546ba3222532b44b7e0a5.tar.xz
- Added custom emoticons support.
- Added test file for emoticons.
Diffstat (limited to 'test.py')
-rwxr-xr-xtest.py16
1 files changed, 7 insertions, 9 deletions
diff --git a/test.py b/test.py
index f299ca9..6a15937 100755
--- a/test.py
+++ b/test.py
@@ -3,6 +3,7 @@
import pymsn
import pymsn.event
+
import logging
import gobject
@@ -45,23 +46,20 @@ class AnnoyingConversation(pymsn.event.ConversationEventInterface):
gobject.timeout_add(5000, self.annoy_user)
def annoy_user(self):
-# self._client.send_typing_notification()
+ msg = "Let's free the pandas ! (testing pymsn)"
formatting = pymsn.TextFormat("Comic Sans MS",
- pymsn.TextFormat.UNDERLINE | pymsn.TextFormat.BOLD,
- 'FF0000')
- self._client.send_text_message("Let's free the pandas ! (testing pymsn)",
- formatting)
+ pymsn.TextFormat.UNDERLINE | pymsn.TextFormat.BOLD,
+ 'FF0000')
+ self._client.send_text_message(pymsn.ConversationMessage(msg, formatting))
# self._client.send_nudge()
# self._client.send_typing_notification()
-# self._client.send_typing_notification()
-# self._client.send_typing_notification()
return True
def on_conversation_user_typing(self, contact):
pass
- def on_conversation_message_received(self, sender, message, formatting):
- print formatting
+ def on_conversation_message_received(self, sender, message):
+ pass
def on_conversation_error(self, error_type, error):
print "ERROR :", error_type, " ->", error