Module Import alias Import alias ImportFrom alias Assign NameStore Call NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str With Call NameLoad NameLoad Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index NameLoad TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str Assign NameStore IfExp CompareIs NameLoad NameLoad SubscriptLoad Call AttributeLoad NameLoad attr Index Num NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Num Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str With Call NameLoad NameLoad Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad SubscriptLoad ListComp NameLoad comprehension NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Index Num attr Assign NameStore SubscriptLoad NameLoad Slice NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore ListLoad Assign NameStore ListLoad For NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad body Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr Str Num Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr attr Str Str Assign NameStore ListLoad Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str For NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad body Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr Str Num Call AttributeLoad NameLoad attr Num Assign NameStore SubscriptLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr Str Str For TupleStore NameStore NameStore Call NameLoad NameLoad body If CompareLtE NameLoad NameLoad body TryExcept body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str Str Num handlers ExceptHandler body Assign NameStore Num Expr Call AttributeLoad NameLoad attr NameLoad orelse Break Expr ListComp Call AttributeLoad NameLoad attr Num comprehension NameStore SubscriptLoad NameLoad Slice Num NameLoad Assign NameStore Call NameLoad Call NameLoad NameLoad NameLoad Return NameLoad decorator_list
N/A N/A re N/A json collections OrderedDict N/A _register N/A OrderedDict register N/A N/A name ttf_fname fontd_fname N/A N/A N/A Register an Iconfont
    :param name: font name identifier.
    :param ttf_fname: ttf filename (path)
    :param fontd_fname: fontdic filename. (See create_fontdic)
     N/A N/A open fontd_fname r f N/A N/A fontd N/A N/A json loads N/A N/A f read N/A N/A _register N/A name N/A ttf_fname fontd_fname fontd N/A icon N/A N/A code size color font_name N/A None None None N/A N/A  Gets an icon from iconfont.
    :param code: Icon codename (ex: 'icon-name')
    :param size: Icon size
    :param color: Icon color
    :param font_name: Registered font name. If None first one is used.
    :returns: icon text (with markups)
     N/A font N/A N/A font_name None N/A N/A N/A _register keys N/A 0 font_name N/A font_data N/A _register N/A font N/A s N/A [font=%s]%s[/font] N/A N/A font_data N/A 0 N/A unichr N/A N/A font_data N/A 2 N/A code N/A N/A size None N/A N/A s N/A [size=%s]%s[/size] N/A size s N/A N/A color None N/A N/A s N/A [color=%s]%s[/color] N/A color s N/A s N/A create_fontdict_file N/A N/A css_fname output_fname N/A N/A N/A Creates a font dictionary file. Basically creates a dictionary filled
    with icon_code: unicode_value entries
    obtained from a CSS file.
    :param css_fname: CSS filename where font's rules are declared.
    :param output_fname: Fontd file destination
     N/A N/A open css_fname r f N/A N/A data N/A N/A f read N/A res N/A _parse data N/A N/A open output_fname w o N/A N/A N/A N/A o write N/A N/A json dumps res N/A res N/A _parse N/A N/A data N/A N/A N/A pat_start N/A N/A re compile }.+content: N/A re DOTALL N/A start N/A N/A N/A N/A x N/A x N/A N/A re finditer pat_start data N/A 0 start N/A data N/A data N/A start N/A data N/A N/A data replace \ 0x N/A pat_keys N/A N/A re compile [a-zA-Z0-9_-]+:before N/A keys N/A N/A lines N/A N/A i N/A N/A re finditer pat_keys data N/A N/A lineno N/A N/A N/A data count 0 N/A N/A i start 1 N/A N/A N/A lines append lineno N/A N/A N/A keys append N/A N/A N/A N/A i group replace :before N/A values N/A N/A QUOTE " N/A data N/A N/A data replace ' " N/A pat_values N/A N/A re compile content:.+ N/A i N/A N/A re finditer pat_values data N/A N/A lineno N/A N/A N/A data count 0 N/A N/A i start 1 N/A v N/A N/A N/A N/A N/A i group split QUOTE N/A 1 N/A v N/A N/A v replace content: N/A N/A j lnum N/A enumerate lines N/A N/A N/A lnum lineno N/A N/A N/A N/A val N/A int N/A N/A v replace content: 0 N/A N/A N/A N/A val 0 N/A N/A N/A values append val N/A N/A N/A N/A N/A N/A lines pop 0 N/A x N/A lines N/A 0 j N/A res N/A dict N/A zip keys values N/A res N/A