• user

    # coding: utf-8
    import ui
    
    v=ui.load_view('ScriptUIBehaviorTest')
    outText=('*'*5000 + '\n') * 3
    
    v['scrollview1'].border_width=3
    v['scrollview1'].height=378
    v['scrollview1'].width=378
    
    tView = v['scrollview1']['textview1']
    tView.text = outText
    tView.width=10000
    
    v.present()
    

    I created a scrollview with a textview inside in the UI editor.

    Rather than the text in the TextView extending past the scrollview borders and being able to scroll sideways, it simply wraps around at the borders of the scrollview.

    posted in Pythonista read more
  • user

    Is it possible to create a TextView that Will scroll from left to right in the Ui module? It seems there is no way to prevent the text wrapping.

    I've tried wrapping the TextView within a ScrollView and allowing the TextView to scale to its contents, but it never seemed to work, and I've been unable to find examples of either within the documentation.

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!