Simon Hausmann
826ad7a865
Upgrade to PyO3 0.24
...
The main change is that Rust paths are mapped to pathlib.Path, which changes our API (stricter).
2025-04-03 12:24:02 +02:00
Simon Hausmann
1fc0c79cbd
Python: Run ruff linter
2025-02-19 08:52:26 +01:00
Simon Hausmann
3358bc24e3
Format Python files with ruff
2025-02-16 08:58:47 +00:00
Simon Hausmann
607d70b3fa
Python: run mypy on the tests
2025-02-16 08:58:47 +00:00
Simon Hausmann
844590cac8
Python: Add support for snake case imports ( #6229 )
...
When using slint.loader.app_window.XXX look for "app_window.slint" followed by "app-window.slint".
Fixes #6216
2024-09-20 10:25:14 +02:00
Simon Hausmann
636de6fc7c
Python: Fix support for named exports
2024-08-13 12:04:04 +02:00
Simon Hausmann
1e3f05c983
Python: Expose Slint structs
...
Structs declared and exported in Slint are now available in the module namespace
with a constructor.
Fixes #5708
2024-08-13 12:04:04 +02:00
Simon Hausmann
0b6381d012
Python: Fix access to globals when there's more than one
...
The getter for the global didn't capture the correct global_class,
just the last iteration.
This fixes the broken printer demo.
2024-07-11 22:00:39 +02:00
Simon Hausmann
0c7d2062a5
Python: Add support for exporting multiple components
2024-07-02 10:52:22 +02:00
Simon Hausmann
b98035526b
Python: Add the ability to invoke functions declared in Slint from Python
2024-06-05 14:06:10 -07:00
Aurindam Jana
3523e86359
Simplify commercial license ( #3063 )
...
Base the commercial license on the Royalty-free license adding clauses pertaining to the fees.
2024-05-31 14:06:17 +02:00
Aurindam Jana
9a3aa265d5
Update Royalty-free license ( #5257 )
...
Add clarification that Application may not expose Slint APIs.
2024-05-31 10:53:19 +02:00
Aurindam Jana
0cfeec1a31
Update Slint Community License ( #4994 )
...
Updated the version from 1.1 to 1.2
Renamed the header to "Slint Royalty-free Desktop, Mobile, and Web Applications License"
Added definition of "Mobile Application" and grant of right
Moved "Limitations" to 3rd section and "License Conditions - Attributions" to 2nd section
Added flexibility to choose between showing "MadeWithSlint" as a dialog/splash screen or on a public webpage
Moved the para on copyright notices to section under "Limitations"
2024-04-15 15:18:55 +02:00
Simon Hausmann
2234878453
Python: Use kwargs passed to the instance constructors
...
And set properties, like in JavaScript.
2024-03-07 17:49:00 +01:00
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
Simon Hausmann
765c773b90
Python: rework the load_file API, part 2
...
Take arguments for configuring style, etc., throw an exception on errors, and log warning diagnostics.
2024-03-06 13:10:54 +01:00
Simon Hausmann
280f314eeb
Python: Rework the load_file API, part 1
...
Return a namespace that contains a "class type" for
constructing the component instance - similar to the Node.js
API.
2024-03-06 13:10:54 +01:00