def _end_del ( self ) : text = self . edit_text [ : self . edit_pos ] self . set_edit_text ( text )
python tkinter scrolled text delete last line
Deletes the line content after the cursor
def _end_del(self):
        """ Deletes the line content after the cursor  """
        text = self.edit_text[:self.edit_pos]
        self.set_edit_text(text)