pythonqtside._app_keywords · declarations 001
Back to pythonqtside._app_keywords
SIGNAL_METHODS
module-attribute
SIGNAL_METHODS
apply_leftovers
apply_leftovers(obj: Any, leftover: dict, connect: Callable[[Any, Any], Any] = _connect) -> None
PySide2 constructor keywords: a Qt property is set, a signal is connected.
construct
construct(cls: type, args: tuple, kwargs: dict, connect: Callable = _connect, own: Callable[[Any], Any] = lambda obj: obj) -> Any
cls(*args, **kwargs) for a class whose __init__ is native.
own registers the new object before any property or signal keyword is
applied, so a rejected keyword cannot leave it outside cleanup.
initialize
initialize(init: Callable, instance: Any, base: type, args: tuple, kwargs: dict, connect: Callable = _connect) -> Any
Base.__init__(self, ...) or super().__init__(...) with keywords.
init takes the positional arguments only (the instance already bound).
keyword_method
keyword_method(receiver: Any, name: str, inner: Callable) -> Callable
Wrap a native method so PySide2 keywords become positional arguments.
map_keywords
map_keywords(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
native_base(cls: type) -> type | None
The first PythonQt class in a (possibly Python-derived) class's MRO.
native_init
native_init(cls: type) -> bool
True when cls.__init__ is PythonQt's: no Python class before the first
PythonQt base defines one (object.__init__ comes after it and is ignored).