libtextworker 0.1.4
Cross-platform, free and open library for Python projects

◆ setfontcfunc()

def libtextworker.interface.manager.ColorManager.setfontcfunc (   self,
type | object  obj,
typing.Callable  func,
dict | tuple | None   params = None 
)
Set GUI widget font color-set function.
@param obj (type | object): Object (variable or type reference)
@param func (callable | str): Function to set the font style (no arg)
@param params (tuple | dict): Parameters to pass to func

Function paramers must have %(font) in order to
    pass color value. Use %(font-rgb) if you want RGB value.

Definition at line 209 of file manager.py.