Bring wx.MessageBox to Top

Hello,

I have created an wxPython application without a visible frame, but a MessageBox is occasionally spawned by the program in response to other events. Is there a way to spawn the window such that it appears on top of all other programs on the desktop? I have heard of STAY_ON_TOP but is that only within the scope of the application or other programs as well? I have tried it with no luck on Python 2.7.11 on Windows 8.1

Thanks,

Malik

Hello,

I have created an wxPython application without a visible frame, but a
MessageBox is occasionally spawned by the program in response to other
events. Is there a way to spawn the window such that it appears on top
of all other programs on the desktop? I have heard of STAY_ON_TOP but is
that only within the scope of the application or other programs as well?
I have tried it with no luck on Python 2.7.11 on Windows 8.1

Thanks,

    Malik

Malik,

Such behaviour on Windows had grown so intrusive, with pop-ups from
various programs popping up and stealing the focus and potentially
keystrokes, that the behaviour was removed - AFAIK it was taken out of
the OS so as to stop such intrusive behaviour.

Instead you need to use wxNotificationMessage -
http://docs.wxwidgets.org/trunk/classwx_notification_message.html

Gadget/Steve

···

On 28/01/2016 00:42, Malik Brahimi wrote:

--
You received this message because you are subscribed to the Google
Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to wxpython-users+unsubscribe@googlegroups.com
<mailto:wxpython-users+unsubscribe@googlegroups.com>.
For more options, visit https://groups.google.com/d/optout.

--
Steve (Gadget) Barnes
Any opinions in this message are my personal opinions and do not reflect
those of my employer.

How can I duplicate that functionality now that it has been removed?

···

On Thursday, January 28, 2016 at 2:14:06 AM UTC-5, Gadget Steve wrote:

On 28/01/2016 00:42, Malik Brahimi wrote:

Hello,

I have created an wxPython application without a visible frame, but a

MessageBox is occasionally spawned by the program in response to other

events. Is there a way to spawn the window such that it appears on top

of all other programs on the desktop? I have heard of STAY_ON_TOP but is

that only within the scope of the application or other programs as well?

I have tried it with no luck on Python 2.7.11 on Windows 8.1

Thanks,

Malik

Malik,

Such behaviour on Windows had grown so intrusive, with pop-ups from

various programs popping up and stealing the focus and potentially

keystrokes, that the behaviour was removed - AFAIK it was taken out of

the OS so as to stop such intrusive behaviour.

Instead you need to use wxNotificationMessage -

http://docs.wxwidgets.org/trunk/classwx_notification_message.html

Gadget/Steve


You received this message because you are subscribed to the Google

Groups “wxPython-users” group.

To unsubscribe from this group and stop receiving emails from it, send

an email to wxpython-user...@googlegroups.com

mailto:wxpython-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


Steve (Gadget) Barnes

Any opinions in this message are my personal opinions and do not reflect

those of my employer.

I want to prompt the user as a YES_NO dialog box, but specifying that flag doesn’t seem to work.

···

On Thursday, January 28, 2016 at 2:14:06 AM UTC-5, Gadget Steve wrote:

On 28/01/2016 00:42, Malik Brahimi wrote:

Hello,

I have created an wxPython application without a visible frame, but a

MessageBox is occasionally spawned by the program in response to other

events. Is there a way to spawn the window such that it appears on top

of all other programs on the desktop? I have heard of STAY_ON_TOP but is

that only within the scope of the application or other programs as well?

I have tried it with no luck on Python 2.7.11 on Windows 8.1

Thanks,

Malik

Malik,

Such behaviour on Windows had grown so intrusive, with pop-ups from

various programs popping up and stealing the focus and potentially

keystrokes, that the behaviour was removed - AFAIK it was taken out of

the OS so as to stop such intrusive behaviour.

Instead you need to use wxNotificationMessage -

http://docs.wxwidgets.org/trunk/classwx_notification_message.html

Gadget/Steve


You received this message because you are subscribed to the Google

Groups “wxPython-users” group.

To unsubscribe from this group and stop receiving emails from it, send

an email to wxpython-user...@googlegroups.com

mailto:wxpython-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


Steve (Gadget) Barnes

Any opinions in this message are my personal opinions and do not reflect

those of my employer.