X-Git-Url: https://scm.cri.ensmp.fr/git/minwii.git/blobdiff_plain/a4026ac6cb2afe5804ca826f7e8fa04254d36d46..f6ca219fa69085fbbf9feff7ab72c51e805bc9bb:/src/app/widgets/playingscreen.py 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