I'm trying to do write a chat application with an interface that has users names on the side pane that's scrollable.
I have 2 questions:
1- This code is not scrolling, please let me know what I'm doing wrong:
stacklayout2 = StackLayout(orientation='lr-tb',)
## Scrollview layout
scroll_layout = GridLayout(cols=1,
spacing=20,
size_hint_y=None
)
scroll_layout.bind(minimum_height=layout.setter('height'))
for i in range(10):
scroll_layout.add_widget(ToggleButton(text=str(i),
size_hint_y=None,
height=40
)
)
scrollview = ScrollView(size_hint=(.3,.5), do_scroll_x=False)
scrollview.add_widget(scroll_layout)
stacklayout2.add_widget(scrollview)
stacklayout2.add_widget(Button(text='Send',size_hint=(.2,.2)))
s2.add_widget(stacklayout2)
2- Is it the best way to put (clickable/selectable) users on the side pane, I'm doing it right?