|scrollview example without kv file||Rodrigo Liberal||7/11/12 4:02 PM|
I was trying to implement the scrollview example without the kv file but I am finding it difficult.
Do you have a version like that?
|Re: scrollview example without kv file||qua-non||7/26/12 6:33 AM|
from kivy.app import AppThis is actually taken from the documentation, http://kivy.org/docs/api-kivy.uix.scrollview.html#managing-the-content-size
I'm curious what part were you having difficulty with?
|Re: scrollview example without kv file||Gerald Ikenna||2/5/17 4:43 AM|
from kivy.uix.gridlayout import GridLayout
from kivy.uix.button import Button
from kivy.uix.scrollview import ScrollView
from kivy.core.window import Window
from kivy.app import runTouchApp
layout = GridLayout(cols=1, spacing=10, size_hint_y=None)# Make sure the height is such that there is something to scroll.
for i in range(100):
btn = Button(text=str(i), size_hint_y=None, height=40)
root = ScrollView(size_hint=(1, None), size=(Window.width, Window.height))
|Re: scrollview example without kv file||sebastian lopez||2/5/17 6:30 AM|
I have used this code adpated from kivymd
You should use the Container class, also you can use it under the kv languaje