executable

This commit is contained in:
leo 2022-02-15 10:32:44 -08:00
parent d6ce476f33
commit b69367ecde
Signed by: leo
GPG Key ID: 0DD993BFB2B307DB
3 changed files with 5 additions and 1 deletions

3
.gitignore vendored
View File

@ -1 +1,4 @@
__pycache__/ __pycache__/
main.build
main.dist
main.onefile-build

View File

@ -4,6 +4,7 @@ from carInfo import Ui_carInfo
from PySide6.QtWidgets import QWidget, QLabel from PySide6.QtWidgets import QWidget, QLabel
from PySide6.QtCore import Qt from PySide6.QtCore import Qt
from PySide6.QtCharts import QChart, QSplineSeries, QLineSeries from PySide6.QtCharts import QChart, QSplineSeries, QLineSeries
from math import ceil
class carInfo(QWidget): class carInfo(QWidget):
def __init__(self): def __init__(self):
@ -33,7 +34,7 @@ class carInfo(QWidget):
if(val>self.maxV): if(val>self.maxV):
self.maxV = val self.maxV = val
yAxis = self.chart.axes(Qt.Vertical, self.speedSeries[ind])[0] yAxis = self.chart.axes(Qt.Vertical, self.speedSeries[ind])[0]
yAxis.setMax(val+1) yAxis.setMax(ceil(val+1))
self.ui.speedGraph.update() self.ui.speedGraph.update()

BIN
main.exe Normal file

Binary file not shown.