Python: Fix support for named exports

This commit is contained in:
Simon Hausmann 2024-08-13 10:56:12 +02:00 committed by Simon Hausmann
parent 2d5d53fba8
commit 636de6fc7c
7 changed files with 73 additions and 4 deletions

View file

@ -179,6 +179,11 @@ impl CompilationResult {
.into_iter()
.collect::<HashMap<String, PyObject>>()
}
#[getter]
fn named_exports(&self) -> Vec<(String, String)> {
self.result.named_exports(i_slint_core::InternalToken {}).cloned().collect::<Vec<_>>()
}
}
#[pyclass(unsendable)]