projects
/
minwii.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Amélioration cosmétique.
[minwii.git]
/
src
/
minwii
/
widgets
/
playingscreen.py
diff --git
a/src/minwii/widgets/playingscreen.py
b/src/minwii/widgets/playingscreen.py
index
9c1ebfb
..
9296646
100755
(executable)
--- a/
src/minwii/widgets/playingscreen.py
+++ b/
src/minwii/widgets/playingscreen.py
@@
-59,11
+59,16
@@
class PlayingScreenBase(pygame.sprite.LayeredDirty, EventHandlerMixin) :
columnWidth = int(round(float(dispWidth) / self.keyboardLength))
rects = []
columnWidth = int(round(float(dispWidth) / self.keyboardLength))
rects = []
- for i in range(self.keyboardLength) :
+ for i in range(self.keyboardLength
- 1
) :
upperLeftCorner = (i*columnWidth, 0)
rect = pygame.Rect(upperLeftCorner, (columnWidth, dispHeight))
rects.append(rect)
upperLeftCorner = (i*columnWidth, 0)
rect = pygame.Rect(upperLeftCorner, (columnWidth, dispHeight))
rects.append(rect)
+ # la dernière colonne a la largeur du reste
+ upperLeftCorner = ((i+1) * columnWidth, 0)
+ rect = pygame.Rect(upperLeftCorner, (dispWidth - (self.keyboardLength - 1) * columnWidth , dispHeight))
+ rects.append(rect)
+
self.keyboardRects = rects
def _initColumns(self) :
self.keyboardRects = rects
def _initColumns(self) :