@ -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( )