Python: Fix name of helper method

This commit is contained in:
Simon Hausmann 2025-05-16 16:58:38 +02:00 committed by Simon Hausmann
parent b1f0e5fe81
commit 1d533641b4
2 changed files with 2 additions and 2 deletions

View file

@ -155,7 +155,7 @@ impl i_slint_core::model::Model for PyModelShared {
}
impl PyModelShared {
pub fn rust_into_js_model<'py>(
pub fn rust_into_py_model<'py>(
model: &ModelRc<slint_interpreter::Value>,
py: Python<'py>,
) -> Option<Bound<'py, PyAny>> {

View file

@ -26,7 +26,7 @@ impl<'py> IntoPyObject<'py> for PyValue {
crate::image::PyImage::from(image).into_bound_py_any(py)
}
slint_interpreter::Value::Model(model) => {
crate::models::PyModelShared::rust_into_js_model(model, py).map_or_else(
crate::models::PyModelShared::rust_into_py_model(model, py).map_or_else(
|| crate::models::ReadOnlyRustModel::from(model).into_bound_py_any(py),
|m| Ok(m),
)