예제 #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)
예제 #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()
예제 #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()
예제 #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()
예제 #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)
예제 #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()
예제 #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()
예제 #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()