Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #72190

Re: need help with this code please fix it or at least tell me what im doing wrong

References <8bc01036-ee9e-4de9-b569-7039dcc05d9c@googlegroups.com>
From Ian Kelly <ian.g.kelly@gmail.com>
Date 2014-05-28 14:49 -0600
Subject Re: need help with this code please fix it or at least tell me what im doing wrong
Newsgroups comp.lang.python
Message-ID <mailman.10421.1401310198.18130.python-list@python.org> (permalink)

Show all headers | View raw


On Wed, May 28, 2014 at 11:32 AM, funky <benjaminhernacki@gmail.com> 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.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

need help with this code please fix it or at least tell me what im doing wrong funky <benjaminhernacki@gmail.com> - 2014-05-28 10:32 -0700
  Re: need help with this code please fix it or at least tell me what im doing wrong Gary Herron <gary.herron@islandtraining.com> - 2014-05-28 10:53 -0700
  Re: need help with this code please fix it or at least tell me what im doing wrong John Gordon <gordon@panix.com> - 2014-05-28 18:33 +0000
  Re: need help with this code please fix it or at least tell me what im doing wrong Grant Edwards <invalid@invalid.invalid> - 2014-05-28 19:08 +0000
  Re: need help with this code please fix it or at least tell me what im doing wrong Ian Kelly <ian.g.kelly@gmail.com> - 2014-05-28 14:49 -0600
  Re: need help with this code please fix it or at least tell me what im doing wrong Mark H Harris <harrismh777@gmail.com> - 2014-05-28 16:37 -0500

csiph-web