Path: csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!nerim.net!novso.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'syntax': 0.03; 'error:': 0.05; 'append': 0.07; 'mouse': 0.07; 'stops': 0.07; 'python': 0.09; 'complaining': 0.09; 'cursor': 0.09; 'moving.': 0.09; '(where': 0.15; 'class:': 0.16; 'from:addr:mrabarnett.plus.com': 0.16; 'from:addr:python': 0.16; 'from:name:mrab': 0.16; 'invisible': 0.16; 'message-id:@mrabarnett.plus.com': 0.16; 'pygame': 0.16; 'received:84.93': 0.16; 'received:84.93.230': 0.16; 'subject:Pygame': 0.16; 'wrote:': 0.17; 'alex': 0.17; 'yield': 0.17; 'appears': 0.18; 'parse': 0.22; 'idea': 0.24; 'tried': 0.25; 'header:In-Reply-To:1': 0.25; 'header:User- Agent:1': 0.26; 'library.': 0.27; 'subject:/': 0.28; 'fine': 0.28; 'indentation': 0.29; 'preceding': 0.29; 'checked': 0.30; 'code': 0.31; 'problem.': 0.32; 'file': 0.32; 'received:84': 0.32; 'turns': 0.33; 'problem': 0.33; 'to:addr:python-list': 0.33; 'code:': 0.33; 'doing': 0.35; 'explain': 0.36; 'but': 0.36; 'skip:p 20': 0.36; 'does': 0.37; 'level': 0.37; 'subject:: ': 0.38; 'files': 0.38; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'skip:" 10': 0.40; 'received:192.168': 0.40; 'help': 0.40; 'more': 0.63; 'making': 0.64; 'here': 0.65; 'header:Reply-To:1': 0.68; 'soon': 0.70; 'reply-to:no real name:2**0': 0.72; "'for'": 0.84; '2013': 0.84; 'replacements': 0.84; 'reply- to:addr:python.org': 0.84; 'email addr:gmail.com)': 0.91 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.0 cv=HO4d4PRv c=1 sm=1 a=0nF1XD0wxitMEM03M9B4ZQ==:17 a=_vX2mLoUpDQA:10 a=KsROExdciVsA:10 a=ihvODaAuJD4A:10 a=OUOv7kDek9cA:10 a=8nJEP1OIZ-IA:10 a=EBOSESyhAAAA:8 a=8AHkEIZyAAAA:8 a=ubUYWBYWqCQA:10 a=fGO4tVQLAAAA:8 a=pGLkceISAAAA:8 a=3WTBHCbBBiezGZ7ZbrIA:9 a=wPNLvfGTeEIA:10 a=MSl-tDqOz04A:10 a=0nF1XD0wxitMEM03M9B4ZQ==:117 X-AUTH: mrabarnett:2500 Date: Mon, 11 Mar 2013 20:54:02 +0000 From: MRAB User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130215 Thunderbird/17.0.3 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Pygame mouse cursor load/unload References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: python-list@python.org List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 23 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1363035241 news.xs4all.nl 6926 [2001:888:2000:d::a6]:42101 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:41092 On 11/03/2013 20:43, Alex Gardner wrote: > On Saturday, March 2, 2013 7:56:31 PM UTC-6, Alex Gardner wrote: >> I am in the process of making a pong game in python using the pygame library. My current problem is that when I move the mouse, it turns off as soon as the mouse stops moving. The way I am doing this is by making the default cursor invisible and using .png files as replacements for the cursor. Perhaps my code would best explain my problem. I will take help in any way that I can. Here are the links that contain my code: >> >> >> >> Main class: http://pastebin.com/HSQzX6h2 >> >> Main file (where the problem lies): http://pastebin.com/67p97RsJ >> >> >> >> If the links yield nothing, please let me know (agardner210@gmail.com) > I tried to append what you told me to. Now it appears that I have a syntax error! I checked my indentations and they look fine to me, but I get this error: > > paddle_pos = pygame.mouse.get_pos() > ^ > IndentationError: unindent does not match any outer indentation level > > I added "paddle_rect.center = pygame.mouse.get_pos()" and removed the double blank paddles. I have no idea if it works though because of the parse error! New code: http://pastebin.com/maqWCdNB > It's complaining because the preceding 'for' loop is indented more that that line.