Method that inserts int in the text widget