mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-17 13:58:05 +00:00
Python: Fix rendering or callback decorator docs
This commit is contained in:
parent
64d446921d
commit
ced9ae7b5f
1 changed files with 2 additions and 2 deletions
|
@ -379,9 +379,9 @@ def callback(
|
||||||
) -> typing.Callable[..., Any]:
|
) -> typing.Callable[..., Any]:
|
||||||
"""Use the callback decorator to mark a method as a callback that can be invoked from the Slint component.
|
"""Use the callback decorator to mark a method as a callback that can be invoked from the Slint component.
|
||||||
|
|
||||||
For the decorator to work, the method must be a member of a class that is Slint component.
|
For the decorator to work, the method must be a member of a class that is Slint component.
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
```python
|
```python
|
||||||
import slint
|
import slint
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue