def setTimeout(self, period):
prev = self.timeOut<EOL>self.timeOut = period<EOL>if self.__timeoutCall is not None:<EOL><INDENT>if period is None:<EOL><INDENT>self.__timeoutCall.cancel()<EOL>self.__timeoutCall = None<EOL><DEDENT>else:<EOL><INDENT>self.__timeoutCall.reset(period)<EOL><DEDENT><DEDENT>elif period is not None:<EOL><INDENT>self.__timeoutCall = self.callLater(period, self.__timedOut)<EOL><DEDENT>return prev<EOL>
Change the timeout period

        @type period: C{int} or C{NoneType}
        @param period: The period, in seconds, to change the timeout to, or
        C{None} to disable the timeout.