From: Kevin A. <al...@se...> - 2005-04-18 20:05:35
|
On Apr 18, 2005, at 12:38 PM, XXXXXXXXXXX wrote: > I'm not sure if this is a PythonCard, wxPython or Windows question (or > all three!)... > > I have a PythonCard application that usually gets run and then > minimized > to the taskbar - it's Windows-only. I've created a subsidiary "alert" > dialog (scrolled message dialog, in order to display a fair amount of > text) that gets created when something gets spotted in a database. > What I > would like to do is have this window appear on-screen, whereas at the > moment when it's created it too appears minimized on the taskbar where > it > might get missed. > > One option I have is to use ctypes to create a Win32 alert dialog > (maybe...I'm in the process of investigating since so far my ctypes > experience has just been in calling my own DLLs), but I was wondering > if > there was any PythonCard way of getting windows to "jump" off the > taskbar. > > Thanks > Neil 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. ka |