Moved networking stuff to network package

Fixed message duping bug
This commit is contained in:
Ammar Askar 2012-07-18 15:45:25 +01:00
parent 2139c7cbd0
commit a3a442db3a
6 changed files with 2 additions and 5 deletions

3
GUI.py
View File

@ -4,8 +4,7 @@ import wx.richtext as rt
import start
import threading
import time
import NetworkManager
import PacketSenderManager
from networking import NetworkManager, PacketSenderManager
import thread
from threading import Lock

View File

@ -113,7 +113,6 @@ class PacketListener(threading.Thread):
print message.replace(u'\xa7', '&')
elif(self.window):
self.window.handleChat(message)
print message
if(response[0] == "\x04"):
PacketListenerManager.handle04(self.FileObject)
if(response[0] == "\x05"):

0
networking/__init__.py Normal file
View File

View File

@ -2,8 +2,7 @@ import urllib
import urllib2
import getpass
import sys
import PacketSenderManager
import NetworkManager
from networking import NetworkManager, PacketSenderManager
import NoGUIstuff
import time
import threading