Downgrade to PySide2

Debian stable does not have PySide6 packaged and PySide2's API is
similar enough.
older_libs
LEdoian 2 years ago
parent 58a33c5f19
commit e6818a6c3f

@ -8,7 +8,7 @@ from enum import Enum, auto
from dataclasses import dataclass from dataclasses import dataclass
import re import re
import random import random
from PySide6 import QtCore, QtGui, QtWidgets from PySide2 import QtCore, QtGui, QtWidgets
# Classification # Classification

@ -30,7 +30,7 @@ final_topo = combiner.get_complete_topology()
from birdvisu.visualisation import annotators from birdvisu.visualisation import annotators
# annotators.create_qgritems does not like being run without Qt initialization. # annotators.create_qgritems does not like being run without Qt initialization.
from PySide6 import QtCore, QtGui, QtWidgets from PySide2 import QtCore, QtGui, QtWidgets
app = QtWidgets.QApplication([]) app = QtWidgets.QApplication([])
annotated_topology = maps_new.annotate_topology(final_topo, annotated_topology = maps_new.annotate_topology(final_topo,
@ -62,4 +62,4 @@ for tagsrc in [
view = QtWidgets.QGraphicsView(scene) view = QtWidgets.QGraphicsView(scene)
view.show() view.show()
app.exec() app.exec_()

@ -1,6 +1,6 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
from PySide6 import QtCore, QtGui, QtWidgets from PySide2 import QtCore, QtGui, QtWidgets
class Window(QtWidgets.QWidget): class Window(QtWidgets.QWidget):

Loading…
Cancel
Save