From: <Blu...@us...> - 2010-09-12 14:27:58
|
Revision: 403 http://virtplayground.svn.sourceforge.net/virtplayground/?rev=403&view=rev Author: BlueWolf_ Date: 2010-09-12 14:27:52 +0000 (Sun, 12 Sep 2010) Log Message: ----------- Changed some log-stuff for windows and screen Modified Paths: -------------- trunk/client/callback.py trunk/client/functions.py Modified: trunk/client/callback.py =================================================================== --- trunk/client/callback.py 2010-09-12 01:01:32 UTC (rev 402) +++ trunk/client/callback.py 2010-09-12 14:27:52 UTC (rev 403) @@ -25,12 +25,12 @@ def data_received(self, data): name = data.keys()[0] value = data[name] - log("sendin", name + " - " + repr(data)) + log("recv", name + " - " + repr(data)) def data_send(self, data): name = data.keys()[0] value = data[name] - log("sendout", name + " - " + repr(data)) + log("send", name + " - " + repr(data)) def connection_ready(self, public_rsa, reconnecting): # We are connected Modified: trunk/client/functions.py =================================================================== --- trunk/client/functions.py 2010-09-12 01:01:32 UTC (rev 402) +++ trunk/client/functions.py 2010-09-12 14:27:52 UTC (rev 403) @@ -22,6 +22,10 @@ from validate import Validator import core +# To get colors working in Windows +if os.name == "nt": import colerama + + VERSION = "0.0.1" # This will be used to [sh]are all variables, functions and classes across the @@ -119,15 +123,15 @@ icon_color = "1;7" text_color = "" - elif t == "sendin" and level(5): + elif t == "recv" and level(5): icon = "|<-" - icon_color = "1;100;2" - text_color = "2" + icon_color = "1;90;7" + text_color = "90" - elif t == "sendout" and level(5): + elif t == "send" and level(5): icon = "|->" - icon_color = "1;100;2" - text_color = "2" + icon_color = "1;90;7" + text_color = "90" else: return This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |