select_region() selects an area of text programmatically. The start and end parameters can be 0, -1 if the full text string is required.
Note that the editable widget needs to be realized prior to this method being called on it. See claim_selection() .