def win_menu_select_item(title, *items, **kwargs):
    """
    Usage:
        win_menu_select_item("[CLASS:Notepad]", "", u"文件(&F)", u"退出(&X)")
    :param title:
    :param text:
    :param items:
    :return:
    """
    text = kwargs.get("text", "")
    if not (0 < len(items) < 8):
        raise ValueError("accepted none item or number of items exceed eight")
    f_items = [LPCWSTR(item) for item in items]
    for i in xrange(8 - len(f_items)):
        f_items.append(LPCWSTR(""))

    ret = AUTO_IT.AU3_WinMenuSelectItem(LPCWSTR(title), LPCWSTR(text),
                                        *f_items)
    return ret
def win_menu_select_item(title, *items, **kwargs):
    """
    Usage:
        win_menu_select_item("[CLASS:Notepad]", "", u"文件(&F)", u"退出(&X)")
    :param title:
    :param text:
    :param items:
    :return:
    """
    text = kwargs.get("text", "")
    if not (0 < len(items) < 8):
        raise ValueError("accepted none item or number of items exceed eight")
    f_items = [LPCWSTR(item) for item in items]
    for i in xrange(8 - len(f_items)):
        f_items.append(LPCWSTR(""))

    ret = AUTO_IT.AU3_WinMenuSelectItem(LPCWSTR(title), LPCWSTR(text),
                                        *f_items)
    return ret
def win_menu_select_item ( title , * items , * * kwargs ) : text = kwargs . get ( "text" , "" ) if not ( 0 < len ( items ) < 8 ) : raise ValueError ( "accepted none item or number of items exceed eight" ) f_items = [ LPCWSTR ( item ) for item in items ] for i in xrange ( 8 - len ( f_items ) ) : f_items . append ( LPCWSTR ( "" ) ) ret = AUTO_IT . AU3_WinMenuSelectItem ( LPCWSTR ( title ) , LPCWSTR ( text ) , * f_items ) return ret
Usage:
        win_menu_select_item("[CLASS:Notepad]", "", u"文件(&F)", u"退出(&X)")
    :param title:
    :param text:
    :param items:
    :return:
Usage : win_menu_select_item ( [ CLASS : Notepad ] u 文件 ( &F ) u 退出 ( &X ) ) : param title : : param text : : param items : : return :