X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=helpers%2Fkey.py;h=57fdef1d5616eb9df83ddf0bf0c18d9fb592d2dc;hb=9de92b6dd2bd906f6a64fce7c90a6aff0dbb27a2;hp=7b8051eca028ea049b0c0c8daa889c99cc1b9722;hpb=d479af33afa54fee7c22701c6012a1579ead395f;p=perso%2FImmae%2FProjets%2FPython%2FMusicSampler.git 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: #print("actions linked to key {}:".format(self.key_sym)) #print("\t" + "\n\t".join(action_descriptions)) self.draw_lock.acquire() - surface = pygame.Surface((800, 250)).convert() + surface = pygame.Surface((690, 250)).convert() surface.fill((250, 250, 250)) if getattr(sys, 'frozen', False): police = pygame.font.Font(sys._MEIPASS + "/Ubuntu-Regular.ttf", 14) @@ -168,7 +168,7 @@ class Key: surface.blit(text, (0, offset)) offset += police.get_linesize() - screen.blit(surface, (10, 330)) + screen.blit(surface, (5, 308)) pygame.display.flip() self.draw_lock.release()