Hey,
I am in the process of developing a wxPython application and I am wondering if there is a way to have call wxFrame.Show(True) without the window acquiring focus. The purpose of this window is to be a notification in the corner of the screen and it is very disruptive to be working in an application and then have your window focus stolen and placed on this wxFrame.
Where do you want the focus to remain? in a different frame of the same applications or in another application?
···
2008/1/10, Brendan Zerr <brendanz@cpdist.ca >:
Hey,
I am in the process of developing a wxPython application and I am
wondering if there is a way to have call wxFrame.Show(True) without the
window acquiring focus. The purpose of this window is to be a
notification in the corner of the screen and it is very disruptive to be
working in an application and then have your window focus stolen and
I would like the focus to remain where-ever it was, no matter if it was the same app or a different app. Example: if i'm in firefox , outlook, etc, i would like the notification to show on top but not steal focus away from firefox. I've already got the window on top by setting the wx.Frame style to include wx.STAY_ON_TOP.
Raffaello Barella wrote:
···
Where do you want the focus to remain? in a different frame of the same applications or in another application?
Hey,
I am in the process of developing a wxPython application and I am
wondering if there is a way to have call wxFrame.Show(True)
without the
window acquiring focus. The purpose of this window is to be a
notification in the corner of the screen and it is very disruptive
to be
working in an application and then have your window focus stolen and
placed on this wxFrame.
Thanks in advance
---------------------------------------------------------------------
To unsubscribe, e-mail:
wxPython-users-unsubscribe@lists.wxwidgets.org
<mailto:wxPython-users-unsubscribe@lists.wxwidgets.org>
For additional commands, e-mail:
wxPython-users-help@lists.wxwidgets.org
<mailto:wxPython-users-help@lists.wxwidgets.org>
Thanks for all input given to my question. I did not use anyone's specific solution, but Kyle Rickey pointed me to Andrea Gavana's BalloonTip library which led me to her ToasterBox library, the solution was in that code.
You just need to set the frame to include the wx.FRAME_TOOL_WINDOW style.
Brendan Zerr wrote:
···
Hey,
I am in the process of developing a wxPython application and I am wondering if there is a way to have call wxFrame.Show(True) without the window acquiring focus. The purpose of this window is to be a notification in the corner of the screen and it is very disruptive to be working in an application and then have your window focus stolen and placed on this wxFrame.
Thanks in advance
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
Thanks for all input given to my question. I did not use anyone's specific solution, but Kyle Rickey pointed me to Andrea Gavana's BalloonTip library which led me to her ToasterBox library, the solution was in that code.
"her" --> "his" "Andrea" in Italy is like "Andrew" in English speaking countries.
You just need to set the frame to include the wx.FRAME_TOOL_WINDOW style.
You may also want to sense when the application is not the foreground app and if not also call RequestUserAttention on the new frame so it will do whatever the platform specifies for making the user more likely to notice the window.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!