Ejemplo 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)
Ejemplo 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()
Ejemplo 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()
Ejemplo 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()
Ejemplo 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)
Ejemplo 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()
Ejemplo 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()
Ejemplo 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()