Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Implements #293. There have been a few attempts to move to pyside before, unfortunately there are a few tricky changes between pyqt and pyside.
One of them is the custom UiLoader needed to load UI files in pyside6 like done in pyqt. I have not found any function in the pyside6 library that could be used as alternative.
A second challenge is that the QPlainTextEditLogger, which inherits the 'PySide6.QtCore.QObject' and must therefore be running on the main thread was emitting signals to the qtextedit. This is not needed as a class that has a reference to a widget must be on the mainthread.
Regardless, I changed it is because pyside6 signals do not directly slot into the QT slot like the signals of pyqt6.
there are quite a few topics about this on stackoverflow . For as far as I saw this is the only place where it was done, if it is needed else where a simple pyside6 slot that passes the string to the widget suffices.
Based on a few hours of testing it seems to be working. Nevertheless it is recommended to test the code thoroughly.
Note, the code to create the new ui_files follows in a second pull request.