Hi,
My app is essentially
App -> Screen Manager -> Screen1 -> ScrollView
Screen2
.
.
.
Currently prototyping in Ubuntu/python2 and latest kivy version
Every line in the scrollview is a MyLines instance where I catch double tap on a line to trigger the following action.
No matter what line I double tap, only the last item in the scroll list is selected. I just can't figure out why.
<MyLines>:
orientation: "horizontal"
size_hint_y : None
Label:
id : contenido
Label:
id : fcompra
Label:
id : caduca
Image:
id : thumbnail
center_x: self.parent.center_x
center_y: self.parent.center_y
Everytime an update is required ths function is triggered
def load_grid(self,sel=None):
g=self.ids.idgrid
g.clear_widgets()
for d in get_items(sel,self.consumido): #get_items list(dic())
g.add_widget(MyLines(data=d))
g.bind(minimum_height=g.setter('height'))
MyLines Class catchs the double tap to trigger a change of screen
def on_touch_down(self,touch):
if touch.is_double_tap:
print(self.data) # always print the last item in the scrollview list
return True