|
|
@ -65,7 +65,7 @@ class ArtNetManager:
|
|
|
|
def run(self):
|
|
|
|
def run(self):
|
|
|
|
if len(self.all_images) > 0:
|
|
|
|
if len(self.all_images) > 0:
|
|
|
|
self.curr_image_index = 0
|
|
|
|
self.curr_image_index = 0
|
|
|
|
self.change_image()
|
|
|
|
self.refresh_shown_image()
|
|
|
|
|
|
|
|
|
|
|
|
self.window.show()
|
|
|
|
self.window.show()
|
|
|
|
|
|
|
|
|
|
|
@ -314,7 +314,7 @@ class ArtNetManager:
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
return None
|
|
|
|
return None
|
|
|
|
|
|
|
|
|
|
|
|
def change_image(self):
|
|
|
|
def refresh_shown_image(self):
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
Refresh the image display to show the most current data according to the selected image
|
|
|
|
Refresh the image display to show the most current data according to the selected image
|
|
|
|
:return:
|
|
|
|
:return:
|
|
|
@ -370,6 +370,9 @@ class ArtNetManager:
|
|
|
|
print("Changing root to", path)
|
|
|
|
print("Changing root to", path)
|
|
|
|
self.config.data["file_root"] = path
|
|
|
|
self.config.data["file_root"] = path
|
|
|
|
self.config.update_config()
|
|
|
|
self.config.update_config()
|
|
|
|
|
|
|
|
self.__file_reader = FileReader(self.config.data["file_root"])
|
|
|
|
|
|
|
|
self.update_all_images_list()
|
|
|
|
|
|
|
|
self.refresh_shown_image()
|
|
|
|
|
|
|
|
|
|
|
|
def get_db_connection_details(self) -> dict:
|
|
|
|
def get_db_connection_details(self) -> dict:
|
|
|
|
return self.config.data["db"]
|
|
|
|
return self.config.data["db"]
|
|
|
|