Updated gps_tool to QT 6

This commit is contained in:
2023-10-03 06:28:04 -04:00
parent 80e0dbb290
commit ebeaf239d4
2 changed files with 8 additions and 8 deletions

View File

@ -8,9 +8,9 @@
## WARNING! All changes made in this file will be lost when recompiling UI file! ## WARNING! All changes made in this file will be lost when recompiling UI file!
################################################################################ ################################################################################
from PySide2.QtCore import * from PySide6.QtCore import *
from PySide2.QtGui import * from PySide6.QtGui import *
from PySide2.QtWidgets import * from PySide6.QtWidgets import *
class Ui_MainWindow(object): class Ui_MainWindow(object):
@ -141,7 +141,7 @@ class Ui_MainWindow(object):
font1 = QFont() font1 = QFont()
font1.setPointSize(10) font1.setPointSize(10)
font1.setBold(True) font1.setBold(True)
font1.setWeight(75) font1.setWeight(QFont.Bold)
self.label_14.setFont(font1) self.label_14.setFont(font1)
self.txtCount = QLabel(self.centralwidget) self.txtCount = QLabel(self.centralwidget)
self.txtCount.setObjectName(u"txtCount") self.txtCount.setObjectName(u"txtCount")

View File

@ -11,9 +11,9 @@ from time import strftime, time
from gps import * from gps import *
import gpxpy import gpxpy
from PySide2.QtGui import * from PySide6.QtGui import *
from PySide2.QtWidgets import QApplication, QMainWindow, QGraphicsEllipseItem, QFileDialog, QGraphicsScene, QGraphicsProxyWidget from PySide6.QtWidgets import QApplication, QMainWindow, QGraphicsEllipseItem, QFileDialog, QGraphicsScene, QGraphicsProxyWidget
from PySide2.QtCore import QObject, Slot, Signal, QThread, QDir, QRect from PySide6.QtCore import QObject, Slot, Signal, QThread, QDir, QRect
import matplotlib as mp import matplotlib as mp
import matplotlib.pyplot as plot import matplotlib.pyplot as plot
@ -305,5 +305,5 @@ if __name__ == '__main__':
window = QtGPSWindow() window = QtGPSWindow()
window.show() window.show()
window.start_thread() window.start_thread()
ret = app.exec_() ret = app.exec()
sys.exit(ret) sys.exit(ret)