def accEventFocusChanged(self, event): if not self.isMyApp(event.source): self.last_focused = event.source ###>def accEventFocusChanged(self, event): if not self.isMyApp(event.source): self.last_focused = event.source