Skip to content

Instantly share code, notes, and snippets.

@hitherejoe hitherejoe/nav-next.py Secret
Created Feb 10, 2019

Embed
What would you like to do?
def nav_to_next_chord(self, channel):
if (self.selectedChordPostion == len(self.chords) - 1):
self.selectedChordPostion = 0
else:
self.selectedChordPostion = self.selectedChordPostion + 1
self.display_chord()
def nav_to_previous_chord(self, channel):
if (self.selectedChordPostion == 0):
self.selectedChordPostion = len(self.chords) - 1
else:
self.selectedChordPostion = self.selectedChordPostion - 1
self.display_chord()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.