예제 #1
0
def file_info():
    accepts = {1: 'audio/*', 2: 'video/*', 3: 'image/*', 4: 'all'}
    data = {'name': input('Enter Title: '), 'id': input('Enter Id: '),
            'vmodel': input('Enter v-model: '), 'readonly': input('Readonly (y/n)? ')}
    print('type of file tobe accepted.')
    print(accepts)
    input('Select')
    data_injector(data['vmodel'])
    return data
예제 #2
0
def check_info():
    data = {'name': input('Enter Title: '), 'id': input('Enter Id: '),
            'vmodel': input('Enter v-model: '), 'checkLength': int(input('Enter no.(length) of checkbox')),
            'readonly': input('Readonly (y/n)? ')}
    val, lab = [], []
    for d in range(data['checkLength']):
        val.append(input('Enter value'))
        lab.append(input('Enter label'))
    data['label'] = lab
    data['values'] = val
    data_injector(data['vmodel'], True)
    return data
예제 #3
0
def select_info():
    data = {'name': input('Enter Title: '), 'placeholder': input('Enter Placeholder: '), 'id': input('Enter Id: '),
            'vmodel': input('Enter v-model: '), 'optionsLength': int(input('Enter no.(length) of options')),
            'readonly': input('Readonly (y/n)? ')}
    val, lab = [], []
    for d in range(data['optionsLength']):
        val.append(input('Enter value'))
        lab.append(input('Enter label'))
    data['label'] = lab
    data['values'] = val
    data_injector(data['vmodel'])
    return data
예제 #4
0
def week_info():
    data = {'name': input('Enter Title: '), 'id': input('Enter Id: '),
            'vmodel': input('Enter v-model: '), 'readonly': input('Readonly (y/n)? ')}
    data_injector(data['vmodel'])
    return data
예제 #5
0
def textbox_info():
    data = {'name': input('Enter Title: '), 'placeholder': input('Enter Placeholder: '), 'id': input('Enter Id: '),
            'vmodel': input('Enter v-model: '), 'readonly': input('Readonly (y/n)? ')}
    data_injector(data['vmodel'])
    return data
예제 #6
0
def button_info():
    data = {'value': input('Enter Value: '), 'id': input('Enter Id: '), 'readonly': input('Readonly (y/n)? ')}
    data_injector(False)
    return data
예제 #7
0
def range_info():
    data = {'name': input('Enter Title: '), 'id': input('Enter Id: '), 'max': int(input('Enter max value')),
            'min': int(input('Enter min value')), 'vmodel': input('Enter v-model: '),
            'readonly': input('Readonly (y/n)? ')}
    data_injector(data['vmodel'])
    return data