def _wx_on_activate(self, event):

        if event.GetActive():
            self.activated = self
        else:
            self.deactivated = self

        event.Skip()
Called when the frame is being activated or deactivated.
dataset/ETHPy150Open enthought/pyface/pyface/ui/wx/window.py/Window._wx_on_activate