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


Groups > comp.lang.python > #62372 > unrolled thread

Re: Windows+Python: Why is the first opened window not shown active?

Started byasmwarrior <asmwarrior@gmail.com>
First post2013-12-19 13:13 +0800
Last post2013-12-19 13:13 +0800
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Windows+Python: Why is the first opened window not shown active? asmwarrior <asmwarrior@gmail.com> - 2013-12-19 13:13 +0800

#62372 — Re: Windows+Python: Why is the first opened window not shown active?

Fromasmwarrior <asmwarrior@gmail.com>
Date2013-12-19 13:13 +0800
SubjectRe: Windows+Python: Why is the first opened window not shown active?
Message-ID<mailman.4399.1387430611.18130.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web