pythonguis-examples/pyqt6-pyside6.sh
Martin Fitzpatrick b74592ea41 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.
2024-02-19 13:36:32 +01:00

14 lines
528 B
Bash
Executable File

#!/bin/bash
# Black the SOURCE files to limit subsequent reformatting (highlights possible issues).
black -l 128 $1
# PyQt6 (built from PySide6) --------------------------------------------------
find $1 -type f -name "*.py" -print0 | xargs -0 sed -i 's/PyQt6/PySide6/g'
find $1 -type f -name "*.py" -print0 | xargs -0 sed -i 's/pyqtSignal/Signal/g'
find $1 -type f -name "*.py" -print0 | xargs -0 sed -i 's/pyqtProperty/Property/g'
find $1 -type f -name "*.py" -print0 | xargs -0 sed -i 's/pyqtSlot/Slot/g'
black -l 128 $1