def on_touch_radio_datetime(xy, action): # if action == 'down' and gui.current_page == PAGE_INDEX_RADIO: if gui.should_perform_radio_event(xy, action, alarm): set_current_page(PAGE_INDEX_CLOCK)
def on_touch_radio_next(xy=None, action="down"): # if action == 'down' and gui.current_page == PAGE_INDEX_RADIO: if gui.should_perform_radio_event(xy, action, alarm): p.next_channel()
def on_touch_radio_mute(xy, action): # if action == 'down' and gui.current_page == PAGE_INDEX_RADIO: if gui.should_perform_radio_event(xy, action, alarm): p.player.toggle_mute()
def on_touch_radio_play_pause(xy, action): # if action == 'down' and gui.current_page == 1: if gui.should_perform_radio_event(xy, action, alarm): p.player.play_pause()