Fixed skipTimeOnFailure store && integer division on python 3 for client

This commit is contained in:
Adolfo Gómez García 2020-06-08 14:35:07 +02:00
parent 8d9b8d9234
commit 4985747c97
2 changed files with 3 additions and 2 deletions

View File

@ -80,8 +80,8 @@ class UDSClient(QtWidgets.QMainWindow):
screen = QtWidgets.QDesktopWidget().screenGeometry()
mysize = self.geometry()
hpos = (screen.width() - mysize.width()) / 2
vpos = (screen.height() - mysize.height() - mysize.height()) / 2
hpos = (screen.width() - mysize.width()) // 2
vpos = (screen.height() - mysize.height() - mysize.height()) // 2
self.move(hpos, vpos)
self.animTimer = QtCore.QTimer()

View File

@ -104,6 +104,7 @@ class IPMachinesService(IPServiceBase):
self._token = self.token.value.strip()
self._port = self.port.value
self._skipTimeOnFailure = self.skipTimeOnFailure.num()
def getToken(self):
return self._token or None