• Dalkey

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

    posted in Pythonista read more
  • Dalkey

    @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 read more
  • Dalkey

    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 read more
  • Dalkey

    <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 read more
  • Dalkey

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

    posted in Pythonista read more
  • Dalkey

    @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 read more

Internal error.

Oops! Looks like something went wrong!