From: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - 2007-04-05 16:06:14
|
On 04/04/2007 23:21, BBands wrote: > > If the ap is minimized or under another window when a message comes in > I'd like to restore it or pop it to the fore to get the receiver's > attention. How can I do this? For convenience I've attached chat.py > below. Kevin suggested the following to me...yikes, 2 years ago...when I was enquiring about getting a minimized app to re-appear: > >I would think that just doing self.visible = True would be enough, but > >you might also want to do call self.Raise(). However, it might be more > >correct to use the methods in wx.TopLevelWindow such as Iconize that > >allows you to restore the window. Also, you'll probably want to use > >RequestUserAttention. See the wxWidgets documentation for details. self.visible = True seemed to do the trick from the taskbar, however if it's behind another window I'm not so sure. You could minimize to the taskbar and then raise it, I suppose. *If* I had my wxWidgets documentation around I'd check...sorry. -- Neil |