slint/tests/cases/callbacks
Simon Hausmann 16ceb115a1
slint-compiler: Add support for generating Python stubs (#10123)
The generated file offers the following two pieces of functionality:

- Convenient front-end to slint.load_file() by loading the .slint file
  (replaces use of auto-loader)
- More importantly: Type information for exported properties, callbacks,
  functions, and globals

On loading, the previously generated API is compared to what's in the
.slint file and if the .slint file was changed in an incompatible way,
an exception is thrown.

A Python test driver is added which performs three steps with each test
case:

1. Generate python stubs and checks that they can be loaded with the
python interpreter and that `uv ty check` passes.
2. Extract expected python API out of pyi sections and compares them.
3. Appends any python code from python sections and runs them (this is
combined with step 1)

Fixes #4136
2025-11-20 17:17:01 +01:00
..
callback_alias.slint slint-compiler: Add support for generating Python stubs (#10123) 2025-11-20 17:17:01 +01:00
callback_conn.slint Allow simplified callback handler without curly braces, (#8764) 2025-06-26 15:33:56 +02:00
callback_name_conflicts.slint Simplify commercial license (#3063) 2024-05-31 14:06:17 +02:00
functions.slint node: expose functions 2024-06-04 17:55:14 +02:00
handler.slint Simplify commercial license (#3063) 2024-05-31 14:06:17 +02:00
handler_with_arg.slint Simplify commercial license (#3063) 2024-05-31 14:06:17 +02:00
init.slint Simplify commercial license (#3063) 2024-05-31 14:06:17 +02:00
init_access_base_compo.slint Simplify commercial license (#3063) 2024-05-31 14:06:17 +02:00
init_layout.slint Simplify commercial license (#3063) 2024-05-31 14:06:17 +02:00
init_listview.slint Fix calling init to all the items on a ListView 2024-11-20 14:24:58 +01:00
init_popup.slint Rust generator: don't run the init code twice for popups (#6447) 2024-10-04 17:17:36 +02:00
return_value.slint Simplify commercial license (#3063) 2024-05-31 14:06:17 +02:00