Forum Archive

Disable scrolling in ui.TextView

techteej

Is there any way to disable scrolling in ui.TextView?

[deleted]

@techteej It inherits from ScrollView I think... so like this?

import ui

v = ui.View()
tv = ui.TextView()
tv.height = 100
tv.text = '''a
b
c
d
e
f
g
h
'''
tv.scroll_enabled = False
v.add_subview(tv)
v.present('sheet')
techteej

tv.scroll_enabled = False was what I was looking for. Thanks.