def hotkeys(widget,event): keypress = event.keyval if keypress == 65367: # end client.stop() if keypress == 65362: # up client.volume(3) if keypress == 65364: #down client.volume('-2') if keypress == 65361: # left client.previous() if keypress == 65363: # right client.next() if keypress == 65535: # delete shuffle(None) if keypress == 65366: # pg down repeat(None) if keypress == 32: #space play(None) if keypress == 97: if main_vars.album_art=='1': hide_albumart() else: show_albumart() return True
def next_track(event): write_on_line_one('skip >>') with connection(): client.next()
def next(widget): client.next() settings.stop_on_exit=1
def shuffle(event): write_on_line_one('shuffle!') with connection(): client.shuffle() client.next()