slint/api/python/tests/test_load_file.slint
Simon Hausmann 3c9b57ecf8 Python: Create a property type wrapper for component instances
Map properties and callbacks to attributes with getters and setters.

cc #4134
2024-03-06 17:20:30 +01:00

14 lines
389 B
Text

// Copyright © SixtyFPS GmbH <info@slint.dev>
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.1 OR LicenseRef-Slint-commercial
export global MyGlobal {
in-out property <string> global-prop: "This is global";
}
export component App {
in-out property <string> hello: "World";
callback say-hello(string);
Rectangle {
color: red;
}
}