mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 02:39:28 +00:00
Python: Minor improvements to API descriptions
This commit is contained in:
parent
c0bdfa7169
commit
41366cf272
3 changed files with 30 additions and 30 deletions
|
@ -4,8 +4,8 @@
|
|||
use pyo3::prelude::*;
|
||||
use pyo3_stub_gen::{derive::gen_stub_pyclass, derive::gen_stub_pymethods};
|
||||
|
||||
/// Image objects can be set on Slint Image elements for display. Construct Image objects from a path to an
|
||||
/// image file on disk, using `Image.load_from_path`.
|
||||
/// Image objects can be set on Slint Image elements for display. Use `Image.load_from_path` to construct Image
|
||||
/// objects from a path to an image file on disk.
|
||||
#[gen_stub_pyclass]
|
||||
#[pyclass(unsendable, name = "Image")]
|
||||
pub struct PyImage {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue