From 4b0e9c7b1a8794d6dfdd4ae8c4bfa8662a661a43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B7=AF=E7=9D=BF?= Date: Wed, 30 Apr 2025 14:45:21 +0800 Subject: [PATCH] runable on mac os --- jes_ui.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/jes_ui.py b/jes_ui.py index 02c536b..91c39c4 100644 --- a/jes_ui.py +++ b/jes_ui.py @@ -15,9 +15,9 @@ def __init__(self, _W_W, _W_H, _MOVIE_SINGLE_DIM, _GRAPH_COOR, _SAC_COOR, _GENEA self.sliderList = [] self.buttonList = [] pygame.font.init() - self.bigFont = pygame.font.Font('C:/Users/caryk/AppData/Local/Microsoft/Windows/Fonts/Jygquip 1.ttf', 60) - self.smallFont = pygame.font.Font('C:/Users/caryk/AppData/Local/Microsoft/Windows/Fonts/Jygquip 1.ttf', 30) - self.tinyFont = pygame.font.Font('C:/Users/caryk/AppData/Local/Microsoft/Windows/Fonts/Jygquip 1.ttf', 21) + self.bigFont = pygame.font.Font('visuals/Arial.ttf', 60) + self.smallFont = pygame.font.Font('visuals/Arial.ttf', 30) + self.tinyFont = pygame.font.Font('visuals/Arial.ttf', 21) self.BACKGROUND_PIC = pygame.image.load("visuals/background.png") self.W_W = _W_W self.W_H = _W_H @@ -331,7 +331,7 @@ def doMovies(self): if self.sample_frames >= self.sim.trial_time+self.SAMPLE_FREEZE_TIME: self.startSampleHelper() for i in range(L): - if self.visualSimMemory[i][2] < self.sim.trial_time: + if self.visualSimMemory[i][2] < self.sim.trial_time: self.visualSimMemory[i] = self.sim.simulateRun(self.visualSimMemory[i], 1, False) DIM = arrayIntMultiply(self.MOVIE_SINGLE_DIM, MSCALE[self.CLH[0]]) self.movieScreens[i] = pygame.Surface(DIM, pygame.SRCALPHA, 32)