Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!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.013 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'argument': 0.04; 'arguments': 0.07; 'exception.': 0.07; 'width': 0.07; 'suggest': 0.11; 'centered': 0.16; 'side.': 0.16; 'subject:Pygame': 0.16; 'wrote:': 0.17; 'alex': 0.17; 'thu,': 0.17; 'header:In-Reply- To:1': 0.25; 'fit': 0.26; 'message-id:@mail.gmail.com': 0.27; 'subject:/': 0.28; 'changed.': 0.29; 'to:addr:python-list': 0.33; 'equal': 0.33; 'that,': 0.34; 'received:google.com': 0.34; 'pm,': 0.35; 'received:209.85.220': 0.35; "won't": 0.35; 'received:209.85': 0.35; 'but': 0.36; 'url:org': 0.36; 'method': 0.36; 'too': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'url:docs': 0.38; 'to:addr:python.org': 0.39; 'your': 0.60; '2013': 0.84; 'clamp': 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=fcGmUAt6/IHnB0FLLH9aPJicNy9cwNR6tcqDmvA8Wf0=; b=aMejDKgLQmHmJqy2K1hnnSKkZRl/F51caktMHaZZRyzxbxxYfvgAZrALmRsPlo6wvj XcUFydGJ4lkQ0PWVXsUeJEpA4qRg08+MesCcrIClY0fJdm5PXDgIiZpX5o0rK0mJkHel 5LhX6gP47fugUDxc7Iwlm2Cyjd/5U9FJjSjzHpG9Y87ZIzKqdwhA+Tt9DNmJN+Ze0VA4 ozSG+IeQN3jD+n0DmSWUz8NKoL7i2oiEdm0yeoWR3QgWQASDb7v8em43vFRDKD+xzWAM gJU+QYjq8AUQ+/bK9joCB4ec4FgFzvYK0oQoD7qU/T6msdseW4J29beYaZNCNGcK8WAn ijGA== X-Received: by 10.220.150.74 with SMTP id x10mr2606751vcv.68.1363300320847; Thu, 14 Mar 2013 15:32:00 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: From: Ian Kelly Date: Thu, 14 Mar 2013 16:31:20 -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: 15 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1363300329 news.xs4all.nl 6913 [2001:888:2000:d::a6]:55884 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:41245 On Thu, Mar 14, 2013 at 4:16 PM, Alex Gardner wrote: > It's all working now with one exception. I just want to arrange the paddle to the right side. I managed to do just that, but it won't move freely vertically. I am not fully aware of the arguments of pygame.Rect(). I recommend you read the docs, then: http://www.pygame.org/docs/ref/rect.html In particular, the clamp method documentation states: If the rectangle is too large to fit inside, it is centered inside the argument Rect, but its size is not changed. This is the case because your bounds_rect has width 0. I suggest changing the width of the bounds_rect to be equal to the width of the paddle.