diff options
author | rcoh <rcoh@mit.edu> | 2010-12-20 14:50:08 -0500 |
---|---|---|
committer | rcoh <rcoh@mit.edu> | 2010-12-20 14:50:08 -0500 |
commit | 2736307c1d6d67868ca54a3df951f9e959efedd0 (patch) | |
tree | 50a61c798d52987f8fe575f678aaff5b5b9455b9 /inputs/TCPInput.py | |
parent | 7386cbc7ce48e3996d92d84cff3d1a4dab8f538d (diff) |
Util cleanup is done! Util.py is now refactored into the util module. Woo! RCOH
Diffstat (limited to 'inputs/TCPInput.py')
-rw-r--r-- | inputs/TCPInput.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/inputs/TCPInput.py b/inputs/TCPInput.py index acd6243..9f62825 100644 --- a/inputs/TCPInput.py +++ b/inputs/TCPInput.py @@ -1,4 +1,5 @@ import Util +import util.Strings as Strings from operationscore.Input import * import socket, json, time class TCPInput(Input): @@ -25,7 +26,7 @@ class TCPInput(Input): if self.IS_RESPONDING == 1: # if 'responding', respond to the received data dataDict = json.loads(data) # socketDict = {'data':dataDict, 'address':self.address} - socketDict = {Util.location: (100 * (1 - dataDict['x'] / 10), 25 * (1 + dataDict['y'] / 10))} # like PygameInput + socketDict = {Strings.LOCATION: (100 * (1 - dataDict['x'] / 10), 25 * (1 + dataDict['y'] / 10))} # like PygameInput self.respond(socketDict) else: |