omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    Larger rows

    Pythonista
    2
    2
    1657
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • lrr
      lrr last edited by

      I'm building a Twitter client (because I need to copy multiple tweets to the clipboard). How do I fit more than two lines of text into a TableView?

      I tried cell.text_label.number_of_lines and cell.height to no avail.

      How do I get a different "style" so TableViewCell.detail_text_label isn't None?

      1 Reply Last reply Reply Quote 0
      • henryiii
        henryiii last edited by

        You need to change the row height, too.

        import ui
        
        v = ui.View()
        v.background_color = 'white'
        
        chs = ui.TableView()
        lst = ui.ListDataSource(['one\none\nhi','two','back'])
        lst.number_of_lines=3
        chs.row_height = 66
        chs.data_source = lst
        chs.delegate = lst
        chs.frame = (0,0,320,504)
        v.add_subview(chs)
        
        v.present('sheet')
        
        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Powered by NodeBB Forums | Contributors