Ask Your Question
0

What is the method for scrolling down using scrollview in Kivy?

asked 2022-07-09 11:00:00 +0000

scrum gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2021-12-15 09:00:00 +0000

ladyg gravatar image

The method for scrolling down using ScrollView in Kivy is to use the ScrollView.scrolly property. This property ranges from 0 to 1, with 0 being at the top of the ScrollView and 1 being at the bottom. To scroll down, set the ScrollView.scrolly property to a value greater than the current value. For example, to scroll down by 10% of the ScrollView height:

from kivy.uix.scrollview import ScrollView

scrollView = ScrollView()

# Scroll down by 10%
scrollView.scroll_y += 0.1
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-07-09 11:00:00 +0000

Seen: 12 times

Last updated: Dec 15 '21