def on_mouse_press(self, x, y, button, modifiers): if len(self.focus) > 0: return self.focus[-1].on_mouse_press(x, y, button, modifiers) return Container.on_mouse_press(self, x, y, button, modifiers)
def on_mouse_press(self, x, y, button, modifiers): if len(self.focus) > 0: return self.focus[-1].on_mouse_press(x, y, button, modifiers) return Container.on_mouse_press(self, x, y, button, modifiers)