Skip to content

pythonqtside._app_keywords

_app_keywords

PySide2 keyword arguments for native PythonQt calls, which reject every keyword.

QLabel("x", parent=w) raises "called slot does not support kwargs" in FontLab's PythonQt (pqs-g04/probe_keywords.json). The generated _keywords.json lists the PySide2 parameter names of each routed constructor and method overload. A keyword call becomes a positional one when exactly one positional form fits; a skipped parameter needs a recorded Qt declaration default. Constructor keywords that name no parameter set a Qt property or connect a signal after construction, as PySide2 does. Anything ambiguous or unmapped keeps the native call, and its native error. The table loads on the first call that actually passes keywords.

Complete member index

Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.

Member Kind Signature Summary
SIGNAL_METHODS attribute
apply_leftovers function (obj: Any, leftover: dict, connect: Callable[[Any, Any], Any]=_connect) -> None PySide2 constructor keywords: a Qt property is set, a signal is connected.
construct function (cls: type, args: tuple, kwargs: dict, connect: Callable=_connect, own: Callable[[Any], Any]=lambda obj: obj)… <code>cls(&#42;args, &#42;&#42;kwargs)</code><code> for a class whose </code><code>&#95;&#95;init&#95;&#95;</code> is native.
initialize function (init: Callable, instance: Any, base: type, args: tuple, kwargs: dict, connect: Callable=_connect) -> Any <code>Base.&#95;&#95;init&#95;&#95;(self, ...)</code><code> or </code><code>super().&#95;&#95;init&#95;&#95;(...)</code> with keywords.
keyword_method function (receiver: Any, name: str, inner: Callable) -> Callable Wrap a native method so PySide2 keywords become positional arguments.
map_keywords function (entry: dict | None, args: tuple, kwargs: dict, *, leftover: bool) -> tuple | None The single positional form the keywords select, with the fewest unused names.
native_base function (cls: type) -> type | None The first PythonQt class in a (possibly Python-derived) class's MRO.
native_init function (cls: type) -> bool True when <code>cls.&#95;&#95;init&#95;&#95;</code> is PythonQt's: no Python class before the first.