Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!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.028 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'discard': 0.07; 'subject:code': 0.07; 'subject:help': 0.08; 'expected.': 0.09; '"=="': 0.16; '11:32': 0.16; 'assignment.': 0.16; 'false:': 0.16; 'subject: \n ': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'result.': 0.19; 'subject:need': 0.19; 'issue,': 0.24; 'fairly': 0.24; 'compare': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'subject:please': 0.30; 'message-id:@mail.gmail.com': 0.30; 'code': 0.31; 'stands': 0.31; 'subject:what': 0.31; 'subject:with': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'done': 0.36; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'tell': 0.60; "you're": 0.61; 'more': 0.64; 'here': 0.66; 'stated': 0.69; 'obvious': 0.74; 'subject:this': 0.83; 'presumably': 0.84; 'subject:tell': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=I/vkN3iAdbYhZR5qP0KIWucsvalMXren7Sh+zJwDqNk=; b=02KAphuLoLqzDPcIB0GUhrGbADTvHVLVQ/nRWT662b083RgIbdHcAqUG314SUNAFCE 5EKCV9sO8fmHctQr0dYsrXP+fgHBkEMWV0MKYJWxZOffhZA9n7UcOo8JMnC0Ec0M0WC5 yorPlWBZnzGBVL9/ZR8mfVyaerUAUbFJXb5n9w0Y3eZnJEVowr/z2X1ATle8cnrr3DDB PfyCrkyxf3JX05/Tse06UDs7Afiv+nSxEMoC/LDmU1qoUHaLLIwlvIsWFq3IGrJSt5nw QwpzYnOCrFTa00KlWQAoa7NtOZSJV6PZQnN2ZNykEP+uTrrbuNXXEMzIDP9p3Smf4a3y EoNQ== X-Received: by 10.68.235.6 with SMTP id ui6mr2666358pbc.45.1401310189232; Wed, 28 May 2014 13:49:49 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <8bc01036-ee9e-4de9-b569-7039dcc05d9c@googlegroups.com> References: <8bc01036-ee9e-4de9-b569-7039dcc05d9c@googlegroups.com> From: Ian Kelly Date: Wed, 28 May 2014 14:49:09 -0600 Subject: Re: need help with this code please fix it or at least tell me what im doing wrong To: Python Content-Type: text/plain; charset=UTF-8 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: 13 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1401310198 news.xs4all.nl 2847 [2001:888:2000:d::a6]:50066 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:72190 On Wed, May 28, 2014 at 11:32 AM, funky wrote: > while done == False: > for event in pygame.event.get(): > if event.type == pygame.QUIT: > done == True Here is one fairly obvious bug; you used "==" where you presumably intended to do an assignment. As it stands it will just compare done to True and then discard the result. That's not necessarily the only issue, but if you want more detailed help then as others have stated you're going to have to tell us in what way the code isn't working as expected.