[Tutor] (no subject)

2014-11-29 Thread William
Hello there I'm using Python 3.4 running on Ubuntu 14.04LTS I'm new to programming and also new to linux I'm trying to learn the pygame library I was reading : http://programarcadegames.com/index.php?chapter=introduction_to_graphics&lang=en#section_5 On the section on how to draw text the write

[Tutor] Trouble creating a pygame.font.SysFont, was Re: (no subject)

2014-11-29 Thread Peter Otten
William wrote: Hello William; please provide a meaningful subject line so that your readers get a hint whether your question is in their area of expertise. > Hello there I'm using Python 3.4 running on Ubuntu 14.04LTS > I'm new to programming and also new to linux > I'm trying to learn the pyg

Re: [Tutor] (no subject)

2014-11-29 Thread Danny Yoo
> When I run the code using the IDLE the Python shell gives me the following > error > > Traceback (most recent call last): > File "/home/william/Desktop/Pygame/Python 3X/Drawing_Shapes.py", line 48, in > > font = pygame.font.SysFont('Calibri', 25, True, False) > File "/usr/local/lib/python3.4/dis

Re: [Tutor] (no subject)

2014-11-29 Thread Japhy Bartlett
It looks like this is a pretty common stumbling block, and you need to call `pygame.font.init()` before the code you pasted. Also.. the way you've pasted that code has added '||' all over the place. Not sure what's going on there (some sort of tabs/spaces thing?), but it makes it extremely hard to