mirror of
https://github.com/allankoechke/slint.git
synced 2026-12-04 01:44:48 +00:00
17 lines
518 B
Rust
17 lines
518 B
Rust
// Copyright © SixtyFPS GmbH <info@slint.dev>
|
|
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.1 OR LicenseRef-Slint-commercial
|
|
|
|
mod interpreter;
|
|
use interpreter::{ComponentCompiler, PyDiagnostic, PyDiagnosticLevel, PyValueType};
|
|
|
|
use pyo3::prelude::*;
|
|
|
|
#[pymodule]
|
|
fn slint(_py: Python<'_>, m: &PyModule) -> PyResult<()> {
|
|
m.add_class::<ComponentCompiler>()?;
|
|
m.add_class::<PyValueType>()?;
|
|
m.add_class::<PyDiagnosticLevel>()?;
|
|
m.add_class::<PyDiagnostic>()?;
|
|
Ok(())
|
|
}
|