omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. Dalkey

    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.


    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 6
    • Best 0
    • Controversial 0
    • Groups 0

    Dalkey

    @Dalkey

    0
    Reputation
    768
    Profile views
    6
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    Dalkey Unfollow Follow

    Latest posts made by Dalkey

    • RE: Simple demo of tableview logic for the novices

      Thank you. Most helpful and much appreciated. The try: in the tableview_did_select() is very elegant.

      posted in Pythonista
      Dalkey
      Dalkey
    • RE: Instructions for Pythonista beginners

      @omz Tried UserEcho and found it quite sluggish on my ipad. And a nitpick really but tapping above the URL bar in Safari doesn't return you to the top of the page which is a really handy shortcut. The stickies are nice though. :)

      posted in Pythonista
      Dalkey
      Dalkey
    • RE: Instructions for Pythonista beginners

      Something I have noticed on other forums is that there are quite often a few discussions that are I belive called stickies. They are always at the top of the discussion list and don't go away. They always seem to deal with topics that will always be of interest and can be added to over time. I recently made my way here from the Editorial side of things and have spent time becoming aware of the Pythonista resources on Github, learning how to fetch files from the repository, getting files from dropbox and so on. It certainly would help to have a beginners thread in that it would help speed the learning process up. And if it was at the top of the discussion list you would see it straight away and not have to search for it.

      On a side note and not to be provoking but I don't mind being circumscribed by Apple's strictures. There are other environments that offer greater freedoms but they are also susceptible to greater risks. Pythonista is wonderful but I don't expect it to be a production environment. I see it as a means to learning and having fun.

      posted in Pythonista
      Dalkey
      Dalkey
    • How to highlight a Tableview Row

      <p>I am trying to highlight the first row in a tableview to indicate that it is the default selection in the table. I have tried variations on the following with no success. I wonder if you could tell me what I am doing wrong. Thanks.</p>

      <pre><code> import ui

      def action(sender):
      v = tv.selected_row

      window = ui.load_view()
      window.present('popover', popover_location=(150,500))
      tv = window['tv']

      lds = tv.data_source
      lds.items = 'Sun Mon Tue Wed Thu Fri Sat'.split()
      tv.bg_color = 'green' # this works

      cell = lds.tableview_cell_for_row(tv, 0, 0)
      cell.bg_color ='red
      bgc = ui.View(bg_color = 'blue')
      cell.selected_background_view = bgc
      lds.reload()
      </code></pre>

      posted in Pythonista
      Dalkey
      Dalkey
    • RE: How to highlight a Tableview Row

      Thank you '68. Still learning as well. '71.

      posted in Pythonista
      Dalkey
      Dalkey
    • RE: How to highlight a Tableview Row

      @polymerchm Thank you. I'm still at sea as to how you know that 'Tableview_cell_for_row gets called when a cell comes into view on the screen.' Is it experience or is there documentation or a book that I could reference? I've never done ui programming so any direction you might provide would be much appreciated. I looked at the objective-C documentation but it's too rich for my level of understanding. In trying to understand what was going on, I had noted your statement:

       if row == highlight:
      

      and wondered where 'highlight' originates.
      Thanks again.

      posted in Pythonista
      Dalkey
      Dalkey