On 14/01/06, <b class="gmail_sendername">Rinzwind</b> &lt;<a href="mailto:w.damen@gmail.com">w.damen@gmail.com</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br><br>I've been trying to get myself to learn using pygame. I have created some things but I still need help of examples before I can do it myself but I always run&nbsp; into trouble.<br>On this website I saw a lot of great info regarding pygame:
<br><br><a href="http://www.ida.liu.se/%7EETE257/timetable/LecturePythonPygame.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.ida.liu.se/~ETE257/timetable/LecturePythonPygame.html
</a><br><br>In there is an example where you can draw lines with your mouse with the name &quot;Mouse Input&quot; as a header.
<br>This one and more of those examples all end up with errors like this:<br><br>I saved the code of the example as PaintCircles.py, chmod it to 777 and run it.<br>$ ./PaintCircles.py<br>from: can't read /var/mail/pygame.locals
<br>./PaintCircles.py: line 9: class: command not found<br>./PaintCircles.py: line 11: syntax error near unexpected token `('<br>./PaintCircles.py: line 11: `&nbsp;&nbsp;&nbsp; def __init__(self):'<br><br>I expect the website uses correct code and I am doing something wrong but can someone tell me what that might be?

</blockquote><div><br>What are you trying to run this program with? Try 'python PaintCircles.py' instead.<br></div><br></div><br>