May need to move to QML, and I'm thinking about using PySide, Python.NET, and .NET5 to help with this. #48
Locked
DrewNaylor
started this conversation in
General
Replies: 1 comment
-
This is completed now, I guess. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Avalonia doesn't currently seem to support long-pressing to open context menus, and I couldn't figure out where to get the code to build the native library for QML.NET to run on ARM. Hopefully adding Python isn't too much slower than using pure .NET. At least QML looks kinda nice in my modified version of the example app.
To make things easier, I'll probably first port the Avalonia-based projects over to QML.NET, then I'll port them over to a Python project that includes the PySide and Python.NET packages.
Here's the Python.NET repo: https://github.com/pythonnet/pythonnet
That project lets you use .NET from Python and vice-versa, which is useful if you already have libraries and you want to reuse them. I wanted to use IronPython because it's closer to .NET, but my research said it wouldn't work with CPython libraries like PySide.
For the PySide version, I think I'll try using PySide6 because that uses Qt 6 and might be better than Qt 5 was. Should at least be more future-proof.
One thing I need to be careful about is the licensing for PySide, which is (L)GPL. Using it under the LGPL will allow me to license my project under the Apache License 2.0.
Beta Was this translation helpful? Give feedback.
All reactions