[英]I want to implement the on_touch_down function when a pick is pressed, but don't know how to implement it
I want when this image in my python file is pushed, I want to use the on_touch_down function instead the on_release function.我想当我的 python 文件中的这个图像被推送时,我想使用 on_touch_down 函数而不是 on_release 函数。 if anyone could be of any assistance I would appreciate it.
如果有人可以提供任何帮助,我将不胜感激。
def __init__(self, **kwargs):
super(ProfileWindow, self).__init__(**kwargs)
self.profileimage = ImageButton(source= "icons/profilepic.png", pos_hint={"center_x": 0.5, "center_y": 0.65})
self.profileimage.bind(on_release= self.imagechange)
self.add_widget(self.profileimage)
Thanks for future assistance感谢未来的帮助
使用on_press
而不是on_release
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.