def handle_control_a(event):
        "Select all text in the widget associated with the given event."
        event.widget.tag_add(SEL, 1.0, END + '-1c')
        return 'break'
Select all text in the widget associated with the given event.
recipes/Python/578076_Markov/recipe-578076.py