summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryvesf <yvesf@d0e8fea9-7529-0410-93fb-d39fd5b9c1dd>2009-05-29 18:43:03 +0000
committeryvesf <yvesf@d0e8fea9-7529-0410-93fb-d39fd5b9c1dd>2009-05-29 18:43:03 +0000
commit279f51e960b0716098add300fb66d3be0a76c6d1 (patch)
tree3fbaf5dd2634b9792c1de5f7b59068e58324aaa3
parent13cad81f3af1e75d35d616250170543abbf4ebae (diff)
downloadomegle-279f51e960b0716098add300fb66d3be0a76c6d1.tar.gz
omegle-279f51e960b0716098add300fb66d3be0a76c6d1.zip
blah
git-svn-id: http://xapek.org/svn/common/omegle@1047 d0e8fea9-7529-0410-93fb-d39fd5b9c1dd
-rw-r--r--chat.py11
-rw-r--r--omegle.py1
-rw-r--r--proxy.py1
3 files changed, 10 insertions, 3 deletions
diff --git a/chat.py b/chat.py
index 8d7713c..be36aec 100644
--- a/chat.py
+++ b/chat.py
@@ -3,7 +3,7 @@ import urwid.curses_display
import sys,time
from omegle import OmegleChat
-class Conversation(object):
+class ConversationWindow(object):
def __init__(self):
self.edit = urwid.Edit(caption="Send: ",edit_text="Hi!",multiline=True)
self.editbox = urwid.Filler(self.edit)
@@ -95,9 +95,9 @@ class Omegle(OmegleChat):
def on_wait(self):
self.chatwindow.add_message("Server send Wait")
-class Chat(Conversation):
+class Chat(ConversationWindow):
def __init__(self):
- Conversation.__init__(self)
+ ConversationWindow.__init__(self)
self.omegle = Omegle(self)
def on_toggle_connect(self):
@@ -124,3 +124,8 @@ class Chat(Conversation):
import logging
logging.basicConfig(filename="chat.py.log",level=logging.DEBUG)
Chat().main()
+
+"""
+Unterstuetzt im moment noch nicht das senden des /typing
+partner sieht nicht wenn man tippt
+"""
diff --git a/omegle.py b/omegle.py
index 5725daa..a5a07c1 100644
--- a/omegle.py
+++ b/omegle.py
@@ -195,6 +195,7 @@ def get_count():
return body
if __name__ == "__main__":
+ """Extrem einfacher Chat-Client"""
logging.basicConfig(level=logging.INFO)
print "Lets chat. Type \"quit\" to disconnect"
chat = OmegleChat()
diff --git a/proxy.py b/proxy.py
index 01d5d96..957b116 100644
--- a/proxy.py
+++ b/proxy.py
@@ -15,6 +15,7 @@ colors = {"default":0, "black":30, "red":31, "green":32, "yellow":33,
class OmegleProxyChat(OmegleChat):
+ """Omegle class with link to other "partner" instance"""
def __init__(self,disconnect_event,name,color=0):
OmegleChat.__init__(self,name="(" + name + ")")
self.disconnect_event = disconnect_event