You have a little information about how working the event dispatching.
Everytime you are inherith from a MTWidget, and you want to take
on_touch_down() event, you must know if you want to call the parent
on_touch_down or not.
The MTWidget on_touch*, on_draw, on_update is dispatched accross
children + on_touch* can grab the event.
Maybe you miss to call:
class Item(...):
...
def on_touch_down(self, touch):
if not super(Item, self).on_touch_down(touch):
# not for me
return False
# got it
return True
+ ensure you are doing collision detection if you are not using super()
2010/11/3 Aras <ara...@gmail.com>:
> --
> You received this message because you are subscribed to the Google Groups "pymt-dev" group.
> To post to this group, send email to pymt...@googlegroups.com.
> To unsubscribe from this group, send email to pymt-dev+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/pymt-dev?hl=en.
>
>
self.item1 = Item(name = "Item One", value = 50, pos = (100, 50), size = (20,100))Then I add widgets to the item. And then I handle touch up event like you said:
So the position "restart" from 0, 0.
2010/11/4 Aras Balali Moghaddam <ara...@uvic.ca>: