diff options
Diffstat (limited to 'music_sampler.py')
-rw-r--r-- | music_sampler.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/music_sampler.py b/music_sampler.py index ff04fd1..8ebfaa3 100644 --- a/music_sampler.py +++ b/music_sampler.py | |||
@@ -56,12 +56,8 @@ while 1: | |||
56 | threading.Thread(name = "MSClic", target=key.list_actions, args = [screen]).start() | 56 | threading.Thread(name = "MSClic", target=key.list_actions, args = [screen]).start() |
57 | 57 | ||
58 | draw_lock.acquire() | 58 | draw_lock.acquire() |
59 | if getattr(sys, 'frozen', False): | 59 | police = helpers.font(14) |
60 | icon_police = pygame.font.Font(sys._MEIPASS + "/Symbola.ttf", 19) | 60 | icon_police = helpers.font(14, font = "Symbola") |
61 | police = pygame.font.Font(sys._MEIPASS + "/Ubuntu-Regular.ttf", 14) | ||
62 | else: | ||
63 | icon_police = pygame.font.Font("Symbola.ttf", 19) | ||
64 | police = pygame.font.Font("Ubuntu-Regular.ttf", 14) | ||
65 | 61 | ||
66 | surface = pygame.Surface((208, 250)).convert() | 62 | surface = pygame.Surface((208, 250)).convert() |
67 | surface.fill((250, 250, 250)) | 63 | surface.fill((250, 250, 250)) |