コード例 #1
0
ファイル: main.py プロジェクト: captbrogers/DigitalNightstand
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
ファイル: main.py プロジェクト: captbrogers/DigitalNightstand
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
ファイル: main.py プロジェクト: captbrogers/DigitalNightstand
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
ファイル: main.py プロジェクト: captbrogers/DigitalNightstand
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
ファイル: main.py プロジェクト: alni/DigitalNightstand
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
ファイル: main.py プロジェクト: alni/DigitalNightstand
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
ファイル: main.py プロジェクト: alni/DigitalNightstand
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
ファイル: main.py プロジェクト: alni/DigitalNightstand
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()