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.
<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
v = tv.selected_row
window = ui.load_view()
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)
bgc = ui.View(bg_color = 'blue')
cell.selected_background_view = bgc
@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.