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
Copy text from start_pos up to, but not including end_pos to the clipboard and then delete from the widget.