From c912a80cb9488f5d7413f1e452cf3ede5f379358 Mon Sep 17 00:00:00 2001 From: Antoine Date: Sun, 20 Jan 2019 10:20:08 +0100 Subject: [PATCH] Chanhe default image size in user interface --- Osmose.py | 8 ++++---- UserInterface/NodeDetails.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Osmose.py b/Osmose.py index 9159a98..a3d5af5 100644 --- a/Osmose.py +++ b/Osmose.py @@ -206,8 +206,8 @@ def osmose_one_node(node): images = save_workspace(images, node) print(images) - images = add_info_to_images(images, node) - node["images"]=images + images = add_info_to_images(images, node) + node["images"]=images - with open(path+"/"+str(node["id"])+'/data.json', 'w') as foo: - json.dump(node, foo) + with open(path+"/"+str(node["id"])+'/data.json', 'w') as foo: + json.dump(node, foo) diff --git a/UserInterface/NodeDetails.py b/UserInterface/NodeDetails.py index 12cc4bf..906b10e 100644 --- a/UserInterface/NodeDetails.py +++ b/UserInterface/NodeDetails.py @@ -54,7 +54,7 @@ def saveImages(self): for i, image in enumerate(self.images): imageWidget = QLabel() imagePixmap = QPixmap(image["path"]) - imagePixmap = imagePixmap.scaledToHeight(390) + imagePixmap = imagePixmap.scaledToHeight(224) imageWidget.setPixmap(imagePixmap) self.imagesLayout.addWidget(imageWidget, 0, i)