Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 MDlist 中添加 OneLineListItem 的小部件,并将其与 SQLITe 中的表链接。如何在按下 MDList 中的特定行后调用执行我想要执行的操作的函数。有没有办法让行按下索引来处理 i?
经过漫长的三天,我找到了答案。我只是在回调函数中使用 intance.id 。
def callback(self,instance): m=instance.id
它决定了行,你可以处理它。添加时必须将 id 添加到小部件>