kivy textinput horizontal scroll

13 views
Skip to first unread message

Degenerate Tech

unread,
Apr 17, 2024, 1:02:53 PMApr 17
to Kivy users support
How to on horizontal scroll in kivy textinput  ?
when text line is long then wrap works but i want horizontal scroll so i can swipe to see text .

elli...@cox.net

unread,
Apr 17, 2024, 1:44:57 PMApr 17
to kivy-...@googlegroups.com
Set scroll_from_text to  True.

from kivy.app import App
from kivy.lang import Builder

kv =
"""
AnchorLayout:
   ScrollTextInput:
       padding: 5
       size_hint: None, None
       size: dp(200), dp(30)
       multiline: False
       scroll_from_swipe: True
"""


class TextScrollApp(App):
   
def build(self):
       
return Builder.load_string(kv)


TextScrollApp().run()


From: kivy-...@googlegroups.com <kivy-...@googlegroups.com> on behalf of Degenerate Tech <sksah...@gmail.com>
Sent: Wednesday, April 17, 2024 10:02 AM
To: Kivy users support <kivy-...@googlegroups.com>
Subject: [kivy-users] kivy textinput horizontal scroll
 
How to on horizontal scroll in kivy textinput  ?
when text line is long then wrap works but i want horizontal scroll so i can swipe to see text .

--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/7383e345-9f1c-4f27-8dd4-6164f2f7e344n%40googlegroups.com.

elli...@cox.net

unread,
Apr 17, 2024, 1:46:19 PMApr 17
to kivy-...@googlegroups.com
oops...
from kivy.app import App
from kivy.lang import Builder

kv =
"""
AnchorLayout:

   TextInput:
       padding: 5
       size_hint: None, None
       size: dp(200), dp(30)
       multiline: False
       scroll_from_swipe: True
"""


class TextScrollApp(App):
   
def build(self):
       
return Builder.load_string(kv)


TextScrollApp().run()


From: kivy-...@googlegroups.com <kivy-...@googlegroups.com> on behalf of elli...@cox.net <elli...@cox.net>
Sent: Wednesday, April 17, 2024 10:44 AM
To: kivy-...@googlegroups.com <kivy-...@googlegroups.com>
Subject: Re: [kivy-users] kivy textinput horizontal scroll
 
Reply all
Reply to author
Forward
0 new messages