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.
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()