Table of Contents

Class: IComponentFactory ./src/peak/binding/interfaces.py

Class interface for creating bindable components

Base Classes   
Interface
Methods   
__call__
  __call__ 
__call__ (
        parentComponent,
        componentName=None,
        **attrVals,
        )

Create a new component

The default constructor signature of a binding component is to receive an parent component to be bound to, an optional name relative to the parent, and keyword arguments which will be placed in the new object's dictionary, to override the specified bindings.

Note that some component factories (such as binding.Component) may be more lenient than this interface requires, by allowing you to omit the parentComponent argument. But if you do not know this is true for the object you are calling, you should assume the parent component is required.


Table of Contents

This document was automatically generated on Mon Mar 31 01:11:02 2025 by HappyDoc version 2.1