[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] toggle between play pause and unpause
- To: pythonist12@xxxxxxxxx, pygame mirror on google groups <pygame-mirror-on-google-groups@xxxxxxxxxxxxxxxx>
- Subject: Re: [pygame] toggle between play pause and unpause
- From: Sam Bull <sam.hacking@xxxxxxxx>
- Date: Mon, 08 May 2017 10:11:14 +0100
- Cc: pygame-users@xxxxxxxx
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Mon, 08 May 2017 05:11:24 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sent.com; h=cc :content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc :x-sasl-enc; s=fm1; bh=5sBAMfzLZyJYdeQLhCEKkZ/ACSVCIQ2qzUnZlHqAi cA=; b=M53VUNKedXPF4buKHB47pD8ghkKR434xRH1L8Fnbc/GDduk9/coyu41Wo aIov06XvgUU1mTex7q8JgJtdRlR4acJA4YSZVhwENLOIvVhn6FwGnvjpuvrxJbRz vPXH9tY119mvkimjHLl0cXJDUv8gJ9Jrog4x9ULcFh9yX/BEqeJ1wcTv6fXgYqtZ Cxqjk3M9fpNhpNZyWt2Wg+5EGB4jdfoIK5BeryhYXlQ0ttpXlYQsaTFsmT6ijdLy 6HmmT673U7L6ZbpDWX/X7xQ+kIwtNpm3DcZt5+991MIFl7L/UeXBecjRN5k71y4x z1DqKIIY50NV2sOZIQcI4fh3w8XtA==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=5sBAMfzLZyJYdeQLhC EKkZ/ACSVCIQ2qzUnZlHqAicA=; b=FgCsuo5oCOvVJgMzIxLDN1Q2ULpbYVxNJ8 XxRVRwWgP6UyW1vck9CYnEthV8fb/R3jy/t0iW2cePZs7Pe2HAjOr8McR9Ws+9by Nahxw812hnlip3j7NEFkud/UVryWb+qkX2uKY+H6idJmY7HMLsA6XB0jPW5QyklL Eg8/gmBFrYJSGUOyCwNT76dL9GJQG0vuTge7kIpppuDORurSSkuRcLSiTb7pk4yh J8URU85ZNBgbcjYitSZ7GD4ybruAb5v2cvdno2zNovP1V+nKfLTIqQzWqaiwfxIa NSdwyWv/9mk4Pn791gsXDBUdzzilw/rutjXMrL4S0GHpN/faY/Gw==
- In-reply-to: <ecc9bb1a-a147-4dce-b5e2-bdb8966b729a@googlegroups.com>
- References: <590F5AA3.70107@gmail.com> <1494186149.5759.9.camel@sent.com> <a372f44a-e798-4543-a89e-c0d3070cb136@googlegroups.com> <1494190103.5759.13.camel@sent.com> <fc51e915-30e7-4250-a925-abacfb2257f9@googlegroups.com> <1494198312.5759.17.camel@sent.com> <ecc9bb1a-a147-4dce-b5e2-bdb8966b729a@googlegroups.com>
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
On Sun, 2017-05-07 at 21:02 -0700, pythonist12@xxxxxxxxx wrote:
> Yes I did just as you said. In the else block the print statement
> execute but the paused() function did not execute.
> Any help please.
> the complete code is in the test.py.
OK, one last issue I can see:
pygame.mixer.init()
pygame.mixer.music.load(track)
This should only be run once. So, either run at the beginning of the
program or in the Test: __init__() method.
Attachment:
signature.asc
Description: This is a digitally signed message part