diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2016-06-20 23:08:22 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2016-06-20 23:15:47 +0200 |
commit | 9de92b6dd2bd906f6a64fce7c90a6aff0dbb27a2 (patch) | |
tree | c654b7691e8bc92bd1726554e0d353604ebb4d71 /helpers/key.py | |
parent | d479af33afa54fee7c22701c6012a1579ead395f (diff) | |
download | MusicSampler-9de92b6dd2bd906f6a64fce7c90a6aff0dbb27a2.tar.gz MusicSampler-9de92b6dd2bd906f6a64fce7c90a6aff0dbb27a2.tar.zst MusicSampler-9de92b6dd2bd906f6a64fce7c90a6aff0dbb27a2.zip |
Added music name, currently playing musics, pause/unpause
Diffstat (limited to 'helpers/key.py')
-rw-r--r-- | helpers/key.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/helpers/key.py b/helpers/key.py index 7b8051e..57fdef1 100644 --- a/helpers/key.py +++ b/helpers/key.py | |||
@@ -149,7 +149,7 @@ class Key: | |||
149 | #print("actions linked to key {}:".format(self.key_sym)) | 149 | #print("actions linked to key {}:".format(self.key_sym)) |
150 | #print("\t" + "\n\t".join(action_descriptions)) | 150 | #print("\t" + "\n\t".join(action_descriptions)) |
151 | self.draw_lock.acquire() | 151 | self.draw_lock.acquire() |
152 | surface = pygame.Surface((800, 250)).convert() | 152 | surface = pygame.Surface((690, 250)).convert() |
153 | surface.fill((250, 250, 250)) | 153 | surface.fill((250, 250, 250)) |
154 | if getattr(sys, 'frozen', False): | 154 | if getattr(sys, 'frozen', False): |
155 | police = pygame.font.Font(sys._MEIPASS + "/Ubuntu-Regular.ttf", 14) | 155 | police = pygame.font.Font(sys._MEIPASS + "/Ubuntu-Regular.ttf", 14) |
@@ -168,7 +168,7 @@ class Key: | |||
168 | surface.blit(text, (0, offset)) | 168 | surface.blit(text, (0, offset)) |
169 | offset += police.get_linesize() | 169 | offset += police.get_linesize() |
170 | 170 | ||
171 | screen.blit(surface, (10, 330)) | 171 | screen.blit(surface, (5, 308)) |
172 | pygame.display.flip() | 172 | pygame.display.flip() |
173 | self.draw_lock.release() | 173 | self.draw_lock.release() |
174 | 174 | ||