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)
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)
def dlg_menu(id, text, focused=0): return ct.dlg_menu(id, text, focused)
def dlg_menu(id, text): return ct.dlg_menu(id, text)