I get this error : mySocket.send ( userInput ) TypeError: must be string or buffer, not instance
userInput = StringVar()
e = Entry(gui, textvariable=userInput)
e.pack()
def sendPacket():
mySocket = socket.socket (socket.AF_INET, socket.SOCK_DGRAM)
mySocket.connect ( ( 'CENSORED', 2727 ) )
mySocket.send ( userInput )