X-Git-Url: https://svn.cri.ensmp.fr/git/minwii.git/blobdiff_plain/a4026ac6cb2afe5804ca826f7e8fa04254d36d46..6bfe9ce8372febedd68290beef0405405062b17b:/src/app/widgets/playingscreen.py?ds=sidebyside 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