fatima butt wrote: > hi Peter, > hope you are well.I am getting the following error when i am running the > pygame shell script.I am using Acer SWIFT computer.my python version is > 3.7.3 and pygame version is pygame 1.9.5 > > Traceback (most recent call last): > File "C:\Users\ammah\OneDrive\Documents\project1\myCode.py.py", line > 166, in <module> > draw_text(screen, str(score),18, WIDTH/2,10) > File "C:\Users\ammah\OneDrive\Documents\project1\myCode.py.py", line 28, > in draw_text > font = pygame.font.Font(font_name, size) > pygame.error: font not initialized
OK, you now have a different script, with a different error. Does that mean you resolved your previous problem? Fine. Regarding the new error I found the following hint https://stackoverflow.com/questions/28517979/pygame-font-error i. e. use pygame.init() by entering the error message into a popular search engine ;) _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor