Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #62372
| Path | csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <asmwarrior@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.001 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'python.': 0.02; 'python,': 0.02; 'subject:Windows': 0.02; 'subject:not': 0.03; 'subject:Python': 0.06; 'url:msdn': 0.07; 'function:': 0.09; 'subject:Why': 0.09; 'python': 0.11; 'windows': 0.15; 'golden': 0.16; 'tjg': 0.16; 'underlying': 0.16; 'url:85)': 0.16; 'url:windows': 0.16; 'wrote:': 0.18; 'seems': 0.21; 'header:User- Agent:1': 0.23; 'dll': 0.24; 'first,': 0.26; 'second': 0.26; 'pass': 0.26; 'values': 0.27; 'header:In-Reply-To:1': 0.27; 'to:2**1': 0.27; 'tim': 0.29; 'related': 0.29; 'ctypes': 0.31; 'there,': 0.34; 'subject:the': 0.34; 'but': 0.35; 'received:google.com': 0.35; 'thanks': 0.36; 'subject:?': 0.36; 'url:microsoft': 0.37; 'message-id:@gmail.com': 0.38; 'url:library': 0.38; 'to:addr:python-list': 0.38; 'issue': 0.38; 'to:addr:python.org': 0.39; 'url:en-us': 0.68; 'activated': 0.84; 'handing': 0.84; 'zhang': 0.84; 'subject:+': 0.91; 'to:addr:mail': 0.91; 'reply,': 0.93 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=580rtG82ZTqYn4gTJVbk/x584jN9+8/1ATxKC3tsdP4=; b=rEh2jU4GkLMyhVZyEx2PiKyWqLKH5oA6Hpw+p4qd1dC0iMqHKMOYByZuPywlonxFF4 ozH7je5r1CIHYUMVnLVJLBwZiCQj6pbtfFxlHcD6XTCkopvmck7IjYv2tMSAbjXtNsTd 2ljKhpeNNp8BUQYlkCXDEkznFv4Ry6U926mhyn8Bj2nGfxe9kHP3wZnyv+XXdpVNZmnS EpZyJnDvPREavDKhemAAYUGl0fLiCQShhIqQfmuwYUD7UwPWTY0An5zebdEbHZUy80ir qHYBASJ6IR/xJYxjvV8AYrv3VBO/salVvaQBoe8oJlpOf8iLRXntfe3klANDd5uIXNc3 j5QA== |
| X-Received | by 10.68.235.72 with SMTP id uk8mr38415610pbc.93.1387430102673; Wed, 18 Dec 2013 21:15:02 -0800 (PST) |
| Date | Thu, 19 Dec 2013 13:13:37 +0800 |
| From | asmwarrior <asmwarrior@gmail.com> |
| User-Agent | Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Thunderbird/24.0 |
| MIME-Version | 1.0 |
| To | Tim Golden <mail@timgolden.me.uk>, python-list@python.org |
| Subject | Re: Windows+Python: Why is the first opened window not shown active? |
| References | <52B14248.2010303@gmail.com> <52B16566.6050302@timgolden.me.uk> |
| In-Reply-To | <52B16566.6050302@timgolden.me.uk> |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 7bit |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.4399.1387430611.18130.python-list@python.org> (permalink) |
| Lines | 19 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1387430611 news.xs4all.nl 2912 [2001:888:2000:d::a6]:55473 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:62372 |
Show key headers only | View raw
On 2013-12-18 17:05, Tim Golden wrote: > This isn't related to Python specifically: ctypes is just handing the > values you pass straight on to the underlying DLL (here: user32.dll). > > If you check the MSDN page for the MessageBox function: > > http://msdn.microsoft.com/en-us/library/windows/desktop/ms645505(v=vs.85).aspx > > you can see there's a MB_SETFOREGROUND flag with value 0x00010000L which > seems to do what you want. > > Why the Message box is activated the second time when it isn't the > first, I have no idea. But it's Windows which is deciding what to do > there, not Python. > > TJG Thanks Tim for the reply, indeed this is not an issue in Python, it is related to Windows OS. Yuanhui Zhang
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Windows+Python: Why is the first opened window not shown active? asmwarrior <asmwarrior@gmail.com> - 2013-12-19 13:13 +0800
csiph-web