def cb_focus(self, e): """ Brings a window to the top of the focus stack and gives it focus, and replays the pointer click. Therefore, this callback is intended to be used in response to a button event. The "replay pointer" is used so that the button click isn't lost. """ self.focus() state.replay_pointer()
def cb_stack_raise(self, e): """ Raises a window to the top of its current layer *and* replays the pointer click. Therefore, this callback is intended to be used in response to a button event. The "replay pointer" is used so that the button click isn't lost. """ self.stack_raise() state.replay_pointer()