Skip to content

Instantly share code, notes, and snippets.

@amalgamatedclyde
Created October 30, 2013 13:43
Show Gist options
  • Save amalgamatedclyde/7232905 to your computer and use it in GitHub Desktop.
Save amalgamatedclyde/7232905 to your computer and use it in GitHub Desktop.
args converter
def my_args_converter(row_index, rec):
dict = {'text': rec.is_selected,
'font_size':100,
'padding_x': 100,
'halign': 'left',
'size_hint_y': None,
'cls_dicts': [{'cls': ImageButton, 'kwargs': {'text': str(rec[0])+', '+ rec[1], 'source': '/home/clyde/' + rec[3],'is_selected': rec.is_selected, 'size_hint': (.175,1),
'border_color': [0,0,0,1], 'deselected_color': [3,0,0,1], 'selected_color': [0, 6,.0,1], 'on_release' : callback4}},
{'cls': ListItemLabel,
'kwargs': {'text': str(rec.is_selected), 'font_size': 24,
'padding_x': -100, 'text_size': (300,60),
'halign': 'left' }}]}
return dict
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment