A
A
Andrei1penguin12021-05-26 19:40:24
Python
Andrei1penguin1, 2021-05-26 19:40:24

How to make textinput scroll horizontally?

Good day, there is a task to make a textinput that has vertical and horizontal scrolling, it was possible to do vertical scrolling, with a horizontal problem, here is a piece of code that is currently available:

ScrollView:
            id: info_scroll
            TextInput:
                size_hint: None, None
                height: max(self.minimum_height, info_scroll.height)
                width: self.width
                canvas:
                    Color:
                        rgba: (1, 1, 1, 0.2)
                    Rectangle:
                        pos: self.pos
                        size: self.size

Can you please tell me how can I scroll a TextInput horizontally?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Altry, 2021-05-27
@Andrei1penguin1

Add this to the ScrollView :

do_scroll_x = True
do_scroll_y = False

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question