Python: Minor improvements to API descriptions

This commit is contained in:
Kavindra Palaraja 2025-04-22 21:29:07 +02:00 committed by Simon Hausmann
parent c0bdfa7169
commit 41366cf272
3 changed files with 30 additions and 30 deletions

View file

@ -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 {