Skip to content

Instantly share code, notes, and snippets.

@amalgamatedclyde
Created November 10, 2013 18:41
Show Gist options
  • Save amalgamatedclyde/7402071 to your computer and use it in GitHub Desktop.
Save amalgamatedclyde/7402071 to your computer and use it in GitHub Desktop.
list args_conv
def my_args_converter(row_index, rec):
dict = {'text': '',
'index': rec[4],
'is_selected': rec.is_selected,
'padding_x': 100,
'halign': 'left',
'size_hint_y': None,
'cls_dicts': [{'cls': ImageButton, 'kwargs': {'source': rec[3], 'masterIndex': rec[4], 'size_hint': (.175,1),
'border_color': [0,0,0,1], 'deselected_color': [3,0,0,1], 'selected_color': [0, 6,.0,1], 'is_selected': rec.is_selected,'on_release' : callback}},
{'cls': MyListItemLabel,
'kwargs': {'text': (rec[0])+', '+ rec[1], 'font_size': '28sp',
'padding_x': 200, 'text_size': (300,60),
'halign': 'left', 'index': rec[4],'index': rec[4],}}]}
return dict
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment