mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-29 13:24:48 +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
|
@ -15,9 +15,15 @@ export global SecondGlobal {
|
|||
|
||||
export struct MyData {
|
||||
name: string,
|
||||
age: int
|
||||
age: int,
|
||||
}
|
||||
|
||||
struct Secret-Struct {
|
||||
balance: int,
|
||||
}
|
||||
|
||||
export { Secret-Struct as Public-Struct }
|
||||
|
||||
export component App inherits Window {
|
||||
in-out property <string> hello: "World";
|
||||
callback say-hello(string) -> string;
|
||||
|
@ -47,4 +53,6 @@ export component App inherits Window {
|
|||
}
|
||||
}
|
||||
|
||||
export component Diag inherits Window { }
|
||||
component Diag inherits Window { }
|
||||
|
||||
export { Diag as MyDiag }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue