Example #1
0
    def __init__(self, host, port):
        Config.__init__(self)
        Log.__init__(self, self._env['SERVER_LOG'])

        self.__sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
        self.__connections = []
        self.__host = host
        self.__port = port
Example #2
0
    def __init__(self, window=None):
        Config.__init__(self)
        Log.__init__(self)

        self._controller_path = 'controller'
        self._model_path = 'model'
        self._view_path = 'view'

        self._window = window
        self._current_view = None
Example #3
0
 def __init__(self, controller):
     Config.__init__(self)
     Log.__init__(self, self._env['CLIENT_LOG'])
     self.__sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
     self.__controller = controller