mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-03 18:29:09 +00:00
Python: Fix support for named exports
This commit is contained in:
parent
2d5d53fba8
commit
636de6fc7c
7 changed files with 73 additions and 4 deletions
|
@ -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)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue