popping window on top of the screen and hiding back

I want my window to be invisible most of the time, but get to top of
the screen on hotkey and hide again if the user switches to another
application.

In my hotkey handler I use
        self.Show()
        self.Raise()
        self.Iconize(False)

and in my activate message handler
        self.Hide()
        self.Iconize(True)

but the window pops up on top of the screen, but remains deactivated:
it's title bar colour is a inactive one, and it flashes in the taskbar
as a window requiring my attention and it doesn't get EVT_ACTIVATE. I
tried to add self.SetFocus, but no effect.