import socket
import sys
class SimpleClient:
def __init__(self, client_socket, statusMessage):
self.client_socket = client_socket
self.statusMes
class SimpleClient:
def __init__(self, client_socket, statusMessage):
Your class taking two arguments, but when you call it;
client = SimpleClient()
You didn't write any arguments. So you have to put 2 arguments they may be None.
If you want to allow passing no arguments to the Class initiator, you have to define the initiator with default values set to None (or whatever is appropriate).
For example,
def __init__(self, client_socket=None, statusMessage=""):
self.client_socket = client_socket
self.statusMessage = statusMessage
Now you can call your class instantiation without passing initialization parameters.
client = SimpleClient()