mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 02:39:28 +00:00
Python: build against abi3 to support multiple Python versions
- Upgrade to pyo3 0.21 to enable timedelta for chrono - Enable abi3 for multi-python support
This commit is contained in:
parent
4c1d406561
commit
6408eaf0ad
7 changed files with 15 additions and 11 deletions
|
@ -44,7 +44,7 @@ impl<'a> ToPyObject for PyValueRef<'a> {
|
|||
slint_interpreter::Value::Struct(structval) => structval
|
||||
.iter()
|
||||
.map(|(name, val)| (name.to_string().into_py(py), PyValueRef(val).into_py(py)))
|
||||
.into_py_dict(py)
|
||||
.into_py_dict_bound(py)
|
||||
.into_py(py),
|
||||
slint_interpreter::Value::Brush(brush) => {
|
||||
crate::brush::PyBrush::from(brush.clone()).into_py(py)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue