Hi.
I try marked with touch/mouse an element (picture) in RecycleView.
I found recipe somewhere, but doesn't fit to my code. Why? My code has kv lang.
class clMyRecycleView(RecycleView, LayoutSelectionBehavior):
def __init__(self, **kwargs):
super(clMyRecycleView, self).__init__(**kwargs)
class clRowBoxLayout(BL, clMyImage):
sForBulider = f'''<clRowBoxLayout>:
orientation: 'vertical'
<clMyRecycleView>:
canvas.before:
Color:
rgba: {glBckColor}
Rectangle:
pos: self.pos
size: self.size
bar_color: {glSlidCol}
bar_inactive_color: {glInSlCol}
bar_width: {gnWinW/50}
viewclass: 'clMyImage'
data: {gdFILES['lData']}
RecycleGridLayout:
id: grid
cols: {str(gnCol)}
default_size: None, {gnWinW/gnCol*0.75}
default_size_hint: 1, None
spacing: 10,10
padding: 10, 10, {gnWinW/50+5}, 10
size_hint_y: None
height: self.minimum_height
orientation: 'lr-tb'
multiselect: False
touch_multiselect: False'''
With:
<clMyRecycleView>:
Class? I got: Invalid property name
With:
clMyRecycleView:
I got:
3: myClRecycleView:
4: canvas.before:
>> 5: Color:
6: rgba: (0.1, 0.1, 0.2, 1)
7: Rectangle:
...
Invalid indentation (too many levels)
I try to do that same with RecycleGridLayout. Without success.
I am doing gallery with pictures. I don't know how in that case made: MWE/MRE
Changing to True do nothing.