Add versions for PySide6, PyQt6 & PySide2.
Break down examples into module files to make easier to read. Use full-definitions on Enums (PyQt6 compatible, better documenting). Add fixes for Qt6 versions & some general bugfixes.
This commit is contained in:
11
pyqt5-pyqt6.sh
Executable file
11
pyqt5-pyqt6.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Black the SOURCE files to limit subsequent reformatting.
|
||||
black -l 128 $1
|
||||
|
||||
# PyQt6 (built from PyQt5) --------------------------------------------------
|
||||
find $1 -type f -name "*.py" -print0 | xargs -0 sed -i 's/PyQt5/PyQt6/g'
|
||||
find $1 -type f -name "*.py" -print0 | xargs -0 sed -i 's/exec_/exec/g'
|
||||
find $1 -type f -name "*.py" -print0 | xargs -0 sed -i 's/qt-5/qt-6/g'
|
||||
|
||||
black -l 128 $1
|
||||
Reference in New Issue
Block a user