【发布时间】:2020-04-24 03:06:02
【问题描述】:
我希望当我的 python 文件中的这个图像被推送时,我想使用 on_touch_down 函数而不是 on_release 函数。如果有人可以提供任何帮助,我将不胜感激。
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)
感谢您以后的帮助
【问题讨论】: