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.


    ui.TableViewCell.detail_text_label not working

    Pythonista
    5
    11
    6588
    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.
    • lukaskollmer
      lukaskollmer last edited by

      How do I use the detail_text_label attribute of ui.TableViewCell?

      The documentation mentions something about the cell style, but there's no way to change the cell style

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

        https://forum.omz-software.com/topic/941/tableviewcell-detail_text_label
        This took an rediculously long time to find, given I knew exactly what i was looking for :/

        Phuket2 1 Reply Last reply Reply Quote 3
        • lukaskollmer
          lukaskollmer last edited by

          @JonB Thank you!

          @omz You really should add that to the documentation. The other post is from 2 years ago. If the docs were on GitHub, this would have been fixed a long time ago

          1 Reply Last reply Reply Quote 0
          • Phuket2
            Phuket2 @JonB last edited by

            @JonB , yes it's still tragic searching here. It's such a shame , because so much good info in this forum.

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

              Searching "ui.TableViewCell.detail_text_label site:forum.omz-software.com" on google gives the desired result. Google search with site: operator gives better results than searching directly on the forum .

              Phuket2 2 Replies Last reply Reply Quote 2
              • Phuket2
                Phuket2 @abcabc last edited by

                @abcabc , great idea. Could have a script in Pythonista in the wrench menu that asks for the search term and does the search in the in built browser via Google using site:

                1 Reply Last reply Reply Quote 0
                • Phuket2
                  Phuket2 @abcabc last edited by

                  @abcabc , hmmm was a idea. Works until the global library that we populate decides to ask if we are a robot or not.... Unbelievable. But that's the way it is I guess. I have never tried to get an API key for Google before, not sure if it's hard or not, but what a pain....

                  import webbrowser
                  _site='forum.omz-software.com'
                  _search_term = 'ui.TextView'
                  
                  _url = 'http://www.google.com/search?q=' + _search_term + '?site:'+ _site
                  
                  
                  webbrowser.open(_url)
                  
                  1 Reply Last reply Reply Quote 0
                  • abcabc
                    abcabc last edited by

                    It may not be worth to get google api keys for simple search like this. May be you can try other search engines like bing or duckduckgo.

                    Phuket2 1 Reply Last reply Reply Quote 0
                    • Phuket2
                      Phuket2 @abcabc last edited by

                      @abcabc , yeah I should. Honestly, it is so difficult to search here. As @job mentions, even if you know exactly what you are looking for it still time consuming. I have tried to use the advanced search, and it's probably me, but I seem to get weirder results return. Oh, well, I will try other search engines, see if I can get something working.

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

                        This works fine for me:

                        import webbrowser
                        import urllib.parse
                        
                        term = input("Search: ") + " site:forum.omz-software.com"
                        webbrowser.open(
                            "https://google.com/search?q={}".format(urllib.parse.quote(term))
                        )
                        
                        Phuket2 1 Reply Last reply Reply Quote 1
                        • Phuket2
                          Phuket2 @Webmaster4o last edited by

                          @Webmaster4o , yeah you are right. @cook is working on something now that will make searching a lot easier in the forum

                          1 Reply Last reply Reply Quote 2
                          • First post
                            Last post
                          Powered by NodeBB Forums | Contributors