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

◆ setcolorfunc()

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

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

Definition at line 196 of file manager.py.