The new widget must be stored inside a container (i.e. in an Obj or another Widget) before it can be used.
A widget can be stored inside a container by adding it to a widgetlist attribute using Obj#update or Widget#update.
Params
attributes(Object) - The attributes of the new widget. The_objClassmust be provided.