Esempio n. 1
0
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)
Esempio n. 2
0
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()
Esempio n. 3
0
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()
Esempio n. 4
0
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()
Esempio n. 5
0
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)
Esempio n. 6
0
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()
Esempio n. 7
0
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()
Esempio n. 8
0
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()