I have an error on my Pygame Project here is the code
def text(window, text, loc, color, font_size):
font = pygame.font.Font('Fonts/Sticky_koala-Regular.ttf', font_size)
text = font.render(text, True, color)
window.blit(text, loc)
return (text)
text(window, "/" + numerictext(maxvariable), (variablebox[0][0] + variablebox[1], popuprect.top + 80), (255, 255, 255), 36)