mirror of
https://github.com/slint-ui/slint.git
synced 2025-11-02 21:03:00 +00:00
Python: Add more type stubs to the internal Rust API
This commit is contained in:
parent
7c75720c9a
commit
c111098e49
4 changed files with 29 additions and 1 deletions
|
|
@ -6,6 +6,7 @@ use std::collections::HashMap;
|
|||
use std::path::PathBuf;
|
||||
use std::rc::Rc;
|
||||
|
||||
use pyo3_stub_gen::derive::gen_stub_pyclass_enum;
|
||||
use slint_interpreter::{ComponentHandle, Value};
|
||||
|
||||
use i_slint_compiler::langtype::Type;
|
||||
|
|
@ -244,6 +245,7 @@ impl ComponentDefinition {
|
|||
}
|
||||
}
|
||||
|
||||
#[gen_stub_pyclass_enum]
|
||||
#[pyclass(name = "ValueType")]
|
||||
pub enum PyValueType {
|
||||
Void,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue