oldNumberOfPeople = 0 #People counter last iteration numberOfPeople = 0 #People counter this iteration if largeScreen: ## Timer bubbles settings ## showPhoto = False #Show photo of person who used dispenser photoTimer = 0 BubbleUpdate = 5 #Hz of trackeduser bubble update bubbles = [] hScale = 1.2 movePupilLeft = True if topOption == 2: pygame.time.set_timer(LOOKEVENT, 10000, True) pupils.pupilV = -60 if showScrollingImages: showimages.imagesInit("images/info/") #Set up infographic images else: hScale = 1.0 # Set up screen and misc pygame.mouse.set_visible(False) #Hide mouse from GUI clock = pygame.time.Clock() screen = pygame.Surface(size) #Initialize screen finalSurface = pygame.display.set_mode(screenSize)#, pygame.NOFRAME) #Final screen because large screen pygame.display.toggle_fullscreen() top_screen_height = int(size[1]*hScale) top_screen_width = largeSize[0] # Set up text myfont = pygame.freetype.SysFont(pygame.freetype.get_default_font(), 20) bubblefont = pygame.freetype.SysFont(pygame.freetype.get_default_font(), 30)
# Initialize stats variables st = stattracker.StatTracker() oldNumberOfPeople = 0 #People counter last iteration numberOfPeople = 0 #People counter this iteration if largeScreen: ## Timer bubbles settings ## #Show photo of person who used dispenser showPhoto = False photoTimer = 0 BubbleUpdate = 5 #Hz of trackeduser bubble update bubbles = [] ## Set up infographic images ## showimages.imagesInit("images/info/") hScale = 1.2 else: hScale = 1.0 # Set up screen and misc pygame.mouse.set_visible(False) #Hide mouse from GUI clock = pygame.time.Clock() screen = pygame.Surface(size) #Initialize screen finalSurface = pygame.display.set_mode( screenSize) #, pygame.NOFRAME) #Final screen because large screen pygame.display.toggle_fullscreen() #top_screen_height = int(largeSize[0]*.7) #hScale = 1.2 top_screen_height = int(size[1] * hScale) top_screen_width = largeSize[0]
oldNumberOfPeople = 0 #People counter last iteration numberOfPeople = 0 #People counter this iteration if largeScreen: ## Timer bubbles settings ## showPhoto = False #Show photo of person who used dispenser photoTimer = 0 BubbleUpdate = 5 #Hz of trackeduser bubble update bubbles = [] hScale = 1.2 movePupilLeft = True if topOption == 2: pygame.time.set_timer(LOOKEVENT, 10000, True) pupils.pupilV = -60 if showScrollingImages: showimages.imagesInit("images/info/") #Set up infographic images else: hScale = 1.0 # Set up screen and misc pygame.mouse.set_visible(False) #Hide mouse from GUI clock = pygame.time.Clock() screen = pygame.Surface(size) #Initialize screen finalSurface = pygame.display.set_mode( screenSize) #, pygame.NOFRAME) #Final screen because large screen pygame.display.toggle_fullscreen() top_screen_height = int(size[1] * hScale) top_screen_width = largeSize[0] # Set up text myfont = pygame.freetype.SysFont(pygame.freetype.get_default_font(), 20)