# -*- coding: utf-8 -*-
from pygame import *
+import sys
class Action:
action_types = [
def draw(self, background_surface):
self.surface = self.square().surface()
- police = font.Font("Ubuntu-Regular.ttf", 14)
+ if getattr(sys, 'frozen', False):
+ police = font.Font(sys._MEIPASS + "/Ubuntu-Regular.ttf", 14)
+ else:
+ police = font.Font("Ubuntu-Regular.ttf", 14)
+
text = police.render(self.key_sym, True, (0,0,0))
self.surface.blit(text, (5,5))
background_surface.blit(self.surface, self.position)