browsingcard.py 文件源码

python
阅读 31 收藏 0 点赞 0 评论 0

项目:iotdm-pyclient 作者: peterchauyw 项目源码 文件源码
def on_touch_up(self, touch):
        if self._get_uid('cavoid') in touch.ud:
            return
        if self in [x() for x in touch.grab_list]:
            touch.ungrab(self)
            self._touch = None
            ud = touch.ud[self._get_uid()]
            if ud['mode'] == 'unknown':
                Clock.unschedule(self._change_touch_mode)
                super(BrowsingCard, self).on_touch_down(touch)
                Clock.schedule_once(partial(self._do_touch_up, touch), .1)
            else:
                self._start_animation()
        else:
            if self._touch is not touch and self.uid not in touch.ud:
                super(BrowsingCard, self).on_touch_up(touch)
        return self._get_uid() in touch.ud
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号