def cuttext(self, window_name, object_name, start_position, end_position=-1):
        """
        cut text from start position to end position
        
        @param window_name: Window name to type in, either full name,
        LDTP's name convention, or a Unix glob.
        @type window_name: string
        @param object_name: Object name to type in, either full name,
        LDTP's name convention, or a Unix glob. 
        @type object_name: string
        @param start_position: Start position
        @type object_name: integer
        @param end_position: End position, default -1
        Cut all the text from start position till end
        @type object_name: integer

        @return: 1 on success.
        @rtype: integer
        """
        object_handle = self._get_object_handle(window_name, object_name)
        if not object_handle.AXEnabled:
            raise LdtpServerException(u"Object %s state disabled" % object_name)
        size = object_handle.AXNumberOfCharacters
        if end_position == -1 or end_position > size:
            end_position = size
        if start_position < 0:
            start_position = 0
        data = object_handle.AXValue
        Clipboard.copy(data[start_position:end_position])
        object_handle.AXValue = data[:start_position] + data[end_position:]
        return 1
def cuttext(self, window_name, object_name, start_position, end_position=-1):
        
        object_handle = self._get_object_handle(window_name, object_name)
        if not object_handle.AXEnabled:
            raise LdtpServerException(u"Object %s state disabled" % object_name)
        size = object_handle.AXNumberOfCharacters
        if end_position == -1 or end_position > size:
            end_position = size
        if start_position < 0:
            start_position = 0
        data = object_handle.AXValue
        Clipboard.copy(data[start_position:end_position])
        object_handle.AXValue = data[:start_position] + data[end_position:]
        return 1
def cuttext ( self , window_name , object_name , start_position , end_position = - 1 ) : object_handle = self . _get_object_handle ( window_name , object_name ) if not object_handle . AXEnabled : raise LdtpServerException ( u"Object %s state disabled" % object_name ) size = object_handle . AXNumberOfCharacters if end_position == - 1 or end_position > size : end_position = size if start_position < 0 : start_position = 0 data = object_handle . AXValue Clipboard . copy ( data [ start_position : end_position ] ) object_handle . AXValue = data [ : start_position ] + data [ end_position : ] return 1
cut text from start position to end position
        
        @param window_name: Window name to type in, either full name,
        LDTP's name convention, or a Unix glob.
        @type window_name: string
        @param object_name: Object name to type in, either full name,
        LDTP's name convention, or a Unix glob. 
        @type object_name: string
        @param start_position: Start position
        @type object_name: integer
        @param end_position: End position, default -1
        Cut all the text from start position till end
        @type object_name: integer

        @return: 1 on success.
        @rtype: integer
cut text from start position to end position @param window_name : Window name to type in either full name LDTP s name convention or a Unix glob . @type window_name : string @param object_name : Object name to type in either full name LDTP s name convention or a Unix glob . @type object_name : string @param start_position : Start position @type object_name : integer @param end_position : End position default - 1 Cut all the text from start position till end @type object_name : integer