Skip to content

Commit

Permalink
Do not try to load SysFont
Browse files Browse the repository at this point in the history
Apprantly it crashes on windows after bundling with PyInstaller. But it
works when running from source. How strange!
  • Loading branch information
ironsmile committed Feb 4, 2018
1 parent 4beea19 commit 0782a83
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
#---[ Imports ]-----------------------------------------------------------------
#-------------------------------------------------------------------------------
import pygame
import fonts


#-------------------------------------------------------------------------------
Expand Down Expand Up @@ -140,7 +141,7 @@ def __init__(self, x, y, h_pad, v_pad, orientation, number, background,
buttonList):
## menu items
self.menu_items = [] # List of menu items
self.font = pygame.font.Font(None, 32) # Font to use
self.font = fonts.serif_normal # Font to use

self.x = x # Top left corner (of surface)
self.y = y # relative to the screen/window
Expand Down

0 comments on commit 0782a83

Please sign in to comment.