Advertisement
2n2u

Untitled

Apr 16th, 2016
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.26 KB | None | 0 0
  1. class SimpleCard(MDCard):
  2.     def __init__(self, **kwargs):
  3.         super(SimpleCard, self).__init__(**kwargs)
  4.         self.show_area()
  5.  
  6.     def on_touch_down(self, touch):
  7.         print self.id
  8.         # Do stuff here and kill the event
  9.         return True
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement