Added minimal depdency versions

Upgraded dependencies and noticed a breaking change in pyqt5 (QMainWindow.move() requires integer parameters). Fixed it and introduced minimal versions in requirements.txt
dev
Peery 3 years ago
parent 121c0a8e6a
commit 52030c3409

@ -111,7 +111,7 @@ class Window(QtWidgets.QMainWindow):
""" """
screen = QtWidgets.QDesktopWidget().screenGeometry() screen = QtWidgets.QDesktopWidget().screenGeometry()
size = self.geometry() size = self.geometry()
self.move((screen.width() - size.width()) / 3, (screen.height() - size.height()) / 5) self.move(int((screen.width() - size.width()) / 3), int((screen.height() - size.height()) / 5))
def check_save_changes(self): def check_save_changes(self):
""" """
@ -757,7 +757,7 @@ class Window(QtWidgets.QMainWindow):
self.__main.curr_image_index += 1 self.__main.curr_image_index += 1
if self.__main.curr_image_index >= len(self.__main.all_images): if self.__main.curr_image_index >= len(self.__main.all_images):
self.__main.curr_image_index = 0 self.__main.curr_image_index = 0
self.__main.change_image() self.__main.refresh_shown_image()
if self.presence_docker_open: if self.presence_docker_open:
self.toggle_presence_docker() self.toggle_presence_docker()
@ -776,7 +776,7 @@ class Window(QtWidgets.QMainWindow):
if self.__main.curr_image_index < 0: if self.__main.curr_image_index < 0:
self.__main.curr_image_index += len(self.__main.all_images) self.__main.curr_image_index += len(self.__main.all_images)
self.__main.change_image() self.__main.refresh_shown_image()
if self.presence_docker_open: if self.presence_docker_open:
self.toggle_presence_docker() self.toggle_presence_docker()
@ -988,7 +988,7 @@ class Window(QtWidgets.QMainWindow):
unknown_image_index)) unknown_image_index))
if result == QtWidgets.QMessageBox.Yes: if result == QtWidgets.QMessageBox.Yes:
self.__main.curr_image_index = unknown_image_index self.__main.curr_image_index = unknown_image_index
self.__main.change_image() self.__main.refresh_shown_image()
def on_next_unknown_image_clicked(self): def on_next_unknown_image_clicked(self):
unknown_image_index = self.__main.get_next_unknown_image() unknown_image_index = self.__main.get_next_unknown_image()
@ -1000,7 +1000,7 @@ class Window(QtWidgets.QMainWindow):
unknown_image_index)) unknown_image_index))
if result == QtWidgets.QMessageBox.Yes: if result == QtWidgets.QMessageBox.Yes:
self.__main.curr_image_index = unknown_image_index self.__main.curr_image_index = unknown_image_index
self.__main.change_image() self.__main.refresh_shown_image()
def on_image_id_spinbox_changed(self, v: int): def on_image_id_spinbox_changed(self, v: int):
if self.__tmp_imageid_spinbox == v: if self.__tmp_imageid_spinbox == v:
@ -1011,7 +1011,7 @@ class Window(QtWidgets.QMainWindow):
v)) v))
if result == QtWidgets.QMessageBox.Yes: if result == QtWidgets.QMessageBox.Yes:
self.__main.curr_image_index = v self.__main.curr_image_index = v
self.__main.change_image() self.__main.refresh_shown_image()
self.__tmp_imageid_spinbox: int = v self.__tmp_imageid_spinbox: int = v
@ -1040,4 +1040,4 @@ class Window(QtWidgets.QMainWindow):
else: else:
return return
self.__main.change_image() self.__main.refresh_shown_image()

@ -1,7 +1,7 @@
pyqt5 pyqt5>=5.15.6
pyyaml pyyaml>=6.0
cryptography cryptography
psycopg2-binary psycopg2-binary>=2.9
urllib3 urllib3
validators validators
requests requests

Loading…
Cancel
Save