Line
Link Here
|
0 |
-- a/src/utils/qpaeq |
0 |
++ b/src/utils/qpaeq |
Lines 18-29
Link Here
|
18 |
|
18 |
|
19 |
import os,math,sys |
19 |
import os,math,sys |
20 |
try: |
20 |
try: |
21 |
from PyQt5 import QtWidgets,QtCore |
21 |
from PyQt6 import QtWidgets,QtCore |
22 |
import dbus.mainloop.pyqt5 |
22 |
import dbus.mainloop.pyqt6 |
23 |
import dbus |
23 |
import dbus |
24 |
except ImportError as e: |
24 |
except ImportError as e: |
25 |
sys.stderr.write('There was an error importing needed libraries\n' |
25 |
sys.stderr.write('There was an error importing needed libraries\n' |
26 |
'Make sure you have qt5 and dbus-python installed\n' |
26 |
'Make sure you have qt6 and dbus-python installed\n' |
27 |
'The error that occurred was:\n' |
27 |
'The error that occurred was:\n' |
28 |
'\t%s\n' % (str(e))) |
28 |
'\t%s\n' % (str(e))) |
29 |
sys.exit(-1) |
29 |
sys.exit(-1) |
Lines 564-570
Link Here
|
564 |
return left+right |
564 |
return left+right |
565 |
|
565 |
|
566 |
def main(): |
566 |
def main(): |
567 |
dbus.mainloop.pyqt5.DBusQtMainLoop(set_as_default=True) |
567 |
dbus.mainloop.pyqt6.DBusQtMainLoop(set_as_default=True) |
568 |
app=QtWidgets.QApplication(sys.argv) |
568 |
app=QtWidgets.QApplication(sys.argv) |
569 |
qpaeq_main=QPaeq() |
569 |
qpaeq_main=QPaeq() |
570 |
qpaeq_main.show() |
570 |
qpaeq_main.show() |