Пример #1
0
def dlg_menu(id, items, focused=0, caption='', clip=0, w=0, h=0):
    if isinstance(items, str):
        s = items
    elif isinstance(items, (tuple, list)):
        s = '\n'.join(items)
    else:
        raise ValueError('Incorrect type in dlg_menu')
    return ct.dlg_menu(id, s, focused, caption, clip, w, h)
Пример #2
0
def dlg_menu(id, items, focused=0, caption=''):
    if isinstance(items, str):
        text = items
    elif isinstance(items, (tuple, list)):
        text = '\n'.join(items)
    else:
        return
    return ct.dlg_menu(id, text, focused, caption)
Пример #3
0
def dlg_menu(id, items, focused=0, caption=''):
    if isinstance(items, str):
        text = items
    elif isinstance(items, (tuple, list)):
        text = '\n'.join(items)
    else:
        return
    return ct.dlg_menu(id, text, focused, caption)
Пример #4
0
def dlg_menu(id, text, focused=0):
    return ct.dlg_menu(id, text, focused)        
Пример #5
0
def dlg_menu(id, text):
    return ct.dlg_menu(id, text)        
Пример #6
0
def dlg_menu(id, text, focused=0):
    return ct.dlg_menu(id, text, focused)
Пример #7
0
def dlg_menu(id, text):
    return ct.dlg_menu(id, text)