Skip to content

Instantly share code, notes, and snippets.

@kived
Created August 6, 2014 21:26
Show Gist options
  • Save kived/a8254e8c35201e4191f2 to your computer and use it in GitHub Desktop.
Save kived/a8254e8c35201e4191f2 to your computer and use it in GitHub Desktop.
hide handles
Window.bind(on_touch_down=self._on_window_touch_down)
def _on_window_touch_down(self, win, touch):
if self.collide_point(*touch.pos):
return
if any(child.collide_point(*touch.pos) for child in self.children):
return
self._hide_handles()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment