Copy text from start_pos up to, but not including end_pos to the clipboard and then delete from the widget.
start position
end position
See Implementation
Copy text from start_pos up to, but not including end_pos to the clipboard and then delete from the widget.