X-Git-Url: https://scm.cri.mines-paristech.fr/git/minwii.git/blobdiff_plain/c469bfe0b89e42f313651c097ac7bedd5cd0cae6..f6ca219fa69085fbbf9feff7ab72c51e805bc9bb:/src/app/widgets/playingscreen.py?ds=inline diff --git a/src/app/widgets/playingscreen.py b/src/app/widgets/playingscreen.py index 2fad9c2..2635373 100755 --- a/src/app/widgets/playingscreen.py +++ b/src/app/widgets/playingscreen.py @@ -76,7 +76,12 @@ class _PlayingScreenBase(pygame.sprite.LayeredDirty, EventHandlerMixin) : for i, rect in enumerate(self.keyboardRects) : hue = FIRST_HUE - hueStep * i tone = self.distinctNotes[i] - c = Column(self, hue, rect, tone) + atBorder = False + if i == 0 : + atBorder = 'left' + elif i == self.keyboardLength -1 : + atBorder = 'right' + c = Column(self, hue, rect, tone, atBorder) self.add(c, layer=BACKGROUND_LAYER) self.columns[tone.midi] = c