('SINV0','Mises Stress'),
    ('SINV1','Tresca Stress'),
    ('SINV2','Hydrostatic Pressure'),
    ('SINV6','Third Invariant'),
    ('COORD0','X-Coordinate'),
    ('COORD1','Y-Coordinate'),
    ('COORD2','Z-Coordinate'),
    ('Computed','Distance from a point'),
    ]

res_dict = ODict(res_types)

dia_full = [
    ['feresult','FE Result DB','','info'],
    ['elgroup','Element Group',None,'select',['--ALL--',]],
    ['resindex','Type of result',None,'select',res_dict.values()],
    ['loadcase','Load case',0],
    ['autoscale','Autocalculate deformation scale',True],
    ['dscale','Deformation scale',100.],
    ['showref','Show undeformed configuration',True],
    ['animate','Animate results',False],
    ['shape','Amplitude shape','linear','radio',['linear','sine']],
    ['cycle','Animation cycle','updown','radio',['up','updown','revert']],
    ['count','Number of cycles',5],
    ['nframes','Number of frames',10],
    ['sleeptime','Animation sleeptime',0.1], 
    ]


new_vals = dict(
    feresult = 'some result DB',
    ('SF5','xy-Twisting Moment'),
    ('SINV0','Mises Stress'),
    ('SINV1','Tresca Stress'),
    ('SINV2','Hydrostatic Pressure'),
    ('SINV6','Third Invariant'),
    ('COORD0','X-Coordinate'),
    ('COORD1','Y-Coordinate'),
    ('COORD2','Z-Coordinate'),
    ('Computed','Distance from a point'),
    ])


input_items = [
    dict(name='feresult',text='FE Result DB',value='',itemtype='info'),
    dict(name='elgroup',text='Element Group',choices=['--ALL--',]),
    dict(name='restype',text='Type of result',choices=result_types.values()),
    dict(name='loadcase',text='Load case',value=0),
    dict(name='autoscale',text='Autocalculate deformation scale',value=True),
    dict(name='dscale',text='Deformation scale',value=100.),
    dict(name='showref',text='Show undeformed configuration',value=True),
    dict(name='animate',text='Animate results',value=False),
    dict(name='shape',text='Amplitude shape',value='linear',itemtype='radio',choices=['linear','sine']),
    dict(name='cycle',text='Animation cycle',value='updown',itemtype='radio',choices=['up','updown','revert']),
    dict(name='count',text='Number of cycles',value=5),
    dict(name='nframes',text='Number of frames',value=10),
    dict(name='sleeptime',text='Animation sleeptime',value=0.1), 
    ]


selection = Objects(clas=FeResult)
dialog = None