def _wx_on_activate(self, event):

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

        event.Skip()
This adds a image to be cache to the queue.
dataset/ETHPy150Open enthought/pyface/pyface/ui/wx/window.py/Window._wx_on_activate--crossover with--dataset/ETHPy150Open rcbops/glance-buildpackage/glance/image_cache/drivers/sqlite.py/Driver.queue_image