X-Git-Url: https://svn.cri.ensmp.fr/git/minwii.git/blobdiff_plain/ab079c6f8baf25c115b6b2fb2ef2bfe4a1c4a6fc..fdafbd41faa31dc4d3ffccbe8583db770f08d546:/src/app/widgets/playingscreen.py?ds=sidebyside diff --git a/src/app/widgets/playingscreen.py b/src/app/widgets/playingscreen.py index 0e78285..1bf002c 100755 --- a/src/app/widgets/playingscreen.py +++ b/src/app/widgets/playingscreen.py @@ -48,10 +48,10 @@ class _PlayingScreenBase(object) : dispWidth = screen.get_width() - 2 * BORDER dispHeight = screen.get_height() - 2 * BORDER - columnWidth = int(round(float(dispWidth) / keyboardLength)) + columnWidth = int(round(float(dispWidth) / self.keyboardLength)) rects = [] - for i in range(keyboardLength) : + for i in range(self.keyboardLength) : upperLeftCorner = (i*columnWidth + BORDER, BORDER) rect = pygame.Rect(upperLeftCorner, (columnWidth, dispHeight)) rects.append(rect) @@ -76,7 +76,7 @@ class _PlayingScreenBase(object) : class SongPlayingScreen(_PlayingScreenBase) : def __init__(self, song) : - super(SongPlayingScreen, self).__init__(song.) + super(SongPlayingScreen, self).__init__(song.distinctNotes) self.song = song