Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You can try interacts - if the buttons can display a proper representation of your objects.

L1 = ['dummy']+[0..15]
L2 = [None]+[x^2,sin(x),tan(x),log(x),sqrt(x),exp(x),'jam','foo']
D = {}
@interact(layout=[['key','value','auto_update']])
def _(key=L1,value=L2,auto_update=False):
    global D
    D[key] = value
    if D.has_key('dummy'): del(D['dummy'])   
    print D