Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!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.024 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'broken': 0.04; 'key.': 0.09; 'occasionally': 0.09; 'run,': 0.09; 'window.': 0.09; 'window?': 0.09; 'windows': 0.15; 'fails.': 0.16; 'focus,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'overlaps': 0.16; 'subject:problems': 0.16; 'thereby': 0.16; 'wrote:': 0.18; 'normally': 0.19; 'seems': 0.21; 'appears': 0.22; 'tests': 0.22; 'header:In-Reply-To:1': 0.27; 'idea': 0.28; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'getting': 0.31; 'maybe': 0.34; "can't": 0.35; 'created': 0.35; 'problem.': 0.35; 'something': 0.35; 'case,': 0.35; 'test': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'should': 0.36; 'window': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'john': 0.61; 'back': 0.62; 'happen': 0.63; '30,': 0.65; 'close': 0.67; 'clicking': 0.73; 'jul': 0.74; 'click': 0.77; 'behavior': 0.77; 'happening?': 0.84; '1:47': 0.91; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=jLx4ApdWzSUGWRDQMlNsMB7dnFnuoBcIWPWK/rgQR8E=; b=LjNWhnpmaIPSrJnACYxuVXPoed+/gKdvnNaXwrBsJAL7FS69kAsljSUY87pmo1FDIF D3EVm4RfkN3osVIB6mLQSSpExETQyUge8zGwXoFFsOKscCN5pSz4Su+TBxSYEKOpBeSV 8i8wMu8rMMqsiYR7RcBSd+Yk0O3GZ1vovvPVwcpPkizfvWWktJpbPclONzX4UTPqRJrq FziY0BeahusaZA16lS00TnTAOvskG7+nIbzqeAQXLMbTP7gxvMewI2BRTUi0e+nb7ppT N2wYLZT+B8S6XJwkUPnyEl60q+ENysYxJPqU96IAdjVXcZU3eBuCMPkXW+5WMlwufisE ujLg== MIME-Version: 1.0 X-Received: by 10.59.9.69 with SMTP id dq5mr25870179ved.87.1375148293716; Mon, 29 Jul 2013 18:38:13 -0700 (PDT) In-Reply-To: <7a49a3ab-070f-4c5f-baea-9faf4fc3a6f7@googlegroups.com> References: <7a49a3ab-070f-4c5f-baea-9faf4fc3a6f7@googlegroups.com> Date: Tue, 30 Jul 2013 02:38:13 +0100 Subject: Re: Pyglet on Python3.x, problems From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: 18 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1375148296 news.xs4all.nl 15880 [2001:888:2000:d::a6]:52934 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:51535 On Tue, Jul 30, 2013 at 1:47 AM, John Ladasky wrote: > I'm getting one problem. After a few tests run, I can't close a window. = I am normally closing each interactive test with the ESC key. But when th= at fails I try clicking with the mouse. This also fails. This broken beha= vior appears to be triggered when the window created by pyglet overlaps my = terminal window and thereby steals the focus. Any idea why that might be h= appening? When you say "steals the focus", what exactly do you mean? Do the windows normally get created without focus, but occasionally focus is set to that window? Seems odd. If that's the case, is there any difference if you click outside the window (eg on your terminal) and then back in? Maybe there's something happening on gotfocus that should happen on create. ChrisA