Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!xlned.com!feeder7.xlned.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.049 X-Spam-Evidence: '*H*': 0.90; '*S*': 0.00; 'mouse': 0.07; 'cursor': 0.09; '4:25': 0.16; 'subject:Pygame': 0.16; 'true:': 0.16; 'wrote:': 0.17; 'alex': 0.17; 'skip:p 30': 0.20; 'header:In-Reply- To:1': 0.25; 'message-id:@mail.gmail.com': 0.27; 'subject:/': 0.28; 'position.': 0.30; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'pm,': 0.35; 'received:209.85.220': 0.35; 'received:209.85': 0.35; 'skip:p 20': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'where': 0.40; '2013': 0.84; 'all!': 0.84; 'to:name:python': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=Jgvw4FZiOsZ/nCubbrTWH0OqSW7bLi8b2l6n6xkz5i0=; b=xsKvVokYXNcfDaBYDihJu3sTXWapQiwYtOCwXjv9PcLi7lj3AESCRaLl6iAjQ4BUke 2fpGJ0TfmRcU9dZ5dmMzkrGLJPnibNIne8BGCiPOdKLBFtuvu/iowQOEB6cceMbzg8Jy pt051v4Lu71ffy+YOnRRVrjKMWlMYJNpV2MqdjLnY4KYcgKF7+4mdDgTelpBJGG2m9jj NaC0EoS7goIryoI2lZjazUGq4t0gKXNqtUMOcabkVr8D9SagEEn0VRG29QpoSb7yeRLr mDtj1G04f4fOLLZ6fmtFRgA6BiNK4duJxc8/OqplDpHMhLQX8HPpaNGTxfYbIYKJj37x Gt3A== X-Received: by 10.52.22.194 with SMTP id g2mr3624742vdf.91.1362965248721; Sun, 10 Mar 2013 18:27:28 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <8d5299d0-dcf2-4f16-985c-d1f4a5e1ac69@googlegroups.com> References: <8d5299d0-dcf2-4f16-985c-d1f4a5e1ac69@googlegroups.com> From: Ian Kelly Date: Sun, 10 Mar 2013 19:26:48 -0600 Subject: Re: Pygame mouse cursor load/unload To: Python Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list 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: 21 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1362965257 news.xs4all.nl 6871 [2001:888:2000:d::a6]:55639 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:41048 On Sun, Mar 10, 2013 at 4:25 PM, Alex Gardner wrote: > Now the cursor isn't moving at all! > > while True: > for event in pygame.event.get(): > if event.type == QUIT: > sys.exit() > > screen.blit(bpaddle, paddle_rect) > # Draw the net > pygame.draw.line(screen, game.lineColor, game.net1, game.net2, game.netWidth) > > paddle_rect.clamp_ip(bounds_rect) > screen.blit(beeper, paddle_rect) > > clock.tick(50) > > pygame.display.update() You deleted the line where you update the paddle_rect from the current mouse position.