mg-pso-gui 0.0.101__tar.gz → 0.0.103__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {mg-pso-gui-0.0.101 → mg-pso-gui-0.0.103}/PKG-INFO +1 -1
- {mg-pso-gui-0.0.101 → mg-pso-gui-0.0.103}/mg_pso_gui.egg-info/PKG-INFO +1 -1
- {mg-pso-gui-0.0.101 → mg-pso-gui-0.0.103}/mgpsogui/gui/HomePage.py +17 -6
- {mg-pso-gui-0.0.101 → mg-pso-gui-0.0.103}/setup.py +1 -1
- {mg-pso-gui-0.0.101 → mg-pso-gui-0.0.103}/mg_pso_gui.egg-info/SOURCES.txt +0 -0
- {mg-pso-gui-0.0.101 → mg-pso-gui-0.0.103}/mg_pso_gui.egg-info/dependency_links.txt +0 -0
- {mg-pso-gui-0.0.101 → mg-pso-gui-0.0.103}/mg_pso_gui.egg-info/entry_points.txt +0 -0
- {mg-pso-gui-0.0.101 → mg-pso-gui-0.0.103}/mg_pso_gui.egg-info/requires.txt +0 -0
- {mg-pso-gui-0.0.101 → mg-pso-gui-0.0.103}/mg_pso_gui.egg-info/top_level.txt +0 -0
- {mg-pso-gui-0.0.101 → mg-pso-gui-0.0.103}/mgpsogui/__init__.py +0 -0
- {mg-pso-gui-0.0.101 → mg-pso-gui-0.0.103}/mgpsogui/gui/BoundsEditorWindow.py +0 -0
- {mg-pso-gui-0.0.101 → mg-pso-gui-0.0.103}/mgpsogui/gui/BoundsList.py +0 -0
- {mg-pso-gui-0.0.101 → mg-pso-gui-0.0.103}/mgpsogui/gui/CalibrationParametersView.py +0 -0
- {mg-pso-gui-0.0.101 → mg-pso-gui-0.0.103}/mgpsogui/gui/FunctionsList.py +0 -0
- {mg-pso-gui-0.0.101 → mg-pso-gui-0.0.103}/mgpsogui/gui/ListParametersView.py +0 -0
- {mg-pso-gui-0.0.101 → mg-pso-gui-0.0.103}/mgpsogui/gui/OptionManager.py +0 -0
- {mg-pso-gui-0.0.101 → mg-pso-gui-0.0.103}/mgpsogui/gui/StaticParameterView.py +0 -0
- {mg-pso-gui-0.0.101 → mg-pso-gui-0.0.103}/mgpsogui/gui/StepView.py +0 -0
- {mg-pso-gui-0.0.101 → mg-pso-gui-0.0.103}/mgpsogui/gui/__init__.py +0 -0
- {mg-pso-gui-0.0.101 → mg-pso-gui-0.0.103}/mgpsogui/gui/images/collapse.png +0 -0
- {mg-pso-gui-0.0.101 → mg-pso-gui-0.0.103}/mgpsogui/gui/images/down.png +0 -0
- {mg-pso-gui-0.0.101 → mg-pso-gui-0.0.103}/mgpsogui/gui/images/expand.png +0 -0
- {mg-pso-gui-0.0.101 → mg-pso-gui-0.0.103}/mgpsogui/gui/images/trash.png +0 -0
- {mg-pso-gui-0.0.101 → mg-pso-gui-0.0.103}/mgpsogui/gui/images/up.png +0 -0
- {mg-pso-gui-0.0.101 → mg-pso-gui-0.0.103}/mgpsogui/mgpsogui.py +0 -0
- {mg-pso-gui-0.0.101 → mg-pso-gui-0.0.103}/mgpsogui/start.yaml +0 -0
- {mg-pso-gui-0.0.101 → mg-pso-gui-0.0.103}/mgpsogui/util/CTkToolTip/__init__.py +0 -0
- {mg-pso-gui-0.0.101 → mg-pso-gui-0.0.103}/mgpsogui/util/CTkToolTip/ctk_tooltip.py +0 -0
- {mg-pso-gui-0.0.101 → mg-pso-gui-0.0.103}/mgpsogui/util/GraphGenerator.py +0 -0
- {mg-pso-gui-0.0.101 → mg-pso-gui-0.0.103}/mgpsogui/util/PSORunner.py +0 -0
- {mg-pso-gui-0.0.101 → mg-pso-gui-0.0.103}/mgpsogui/util/__init__.py +0 -0
- {mg-pso-gui-0.0.101 → mg-pso-gui-0.0.103}/setup.cfg +0 -0
@@ -268,10 +268,17 @@ class App(customtkinter.CTk):
|
|
268
268
|
#CTkToolTip(self.graph_button, delay=0.5, message="Open graph in browser...")
|
269
269
|
|
270
270
|
|
271
|
-
self.
|
271
|
+
self.graph_image_obj = Image.open(os.path.join("./images", "up.png"))
|
272
|
+
self.graph_image = customtkinter.CTkImage(self.graph_image_obj, size=(700, 500))
|
272
273
|
self.graph_label = customtkinter.CTkLabel(self.tabview.tab(tab4), text=None, image=self.graph_image)
|
273
|
-
self.tabview.tab(tab4).itemconfig(self.graph_image, tags="all")
|
274
274
|
self.graph_label.grid(row=1, column=0, columnspan=3, padx=(20, 20), pady=(20, 20), sticky="nsew")
|
275
|
+
self.graph_label.bind('<Configure>',self._resize_image)
|
276
|
+
|
277
|
+
def _resize_image(self,event):
|
278
|
+
new_width = event.width
|
279
|
+
new_height = event.height
|
280
|
+
pilimg = self.graph_image_obj.resize((new_width,new_height))
|
281
|
+
self.graph_label.configure(image=customtkinter.CTkImage(pilimg))
|
275
282
|
|
276
283
|
def callback_test(self, *args):
|
277
284
|
print("callback_test called")
|
@@ -403,28 +410,32 @@ class App(customtkinter.CTk):
|
|
403
410
|
image_path = os.path.join(folder, self.selected_graph_name + ".png")
|
404
411
|
if not os.path.exists(image_path):
|
405
412
|
image_path = os.path.join("./images", "up.png")
|
406
|
-
self.
|
413
|
+
self.graph_image_obj = Image.open(image_path)
|
414
|
+
self.graph_image = customtkinter.CTkImage(self.graph_image_obj, size=(1280, 720))
|
407
415
|
self.graph_label.configure(image=self.graph_image)
|
408
416
|
elif (selected_graph == "Best Cost by Round"):
|
409
417
|
self.selected_graph_name = "best_cost_by_round"
|
410
418
|
image_path = os.path.join(folder, self.selected_graph_name + ".png")
|
411
419
|
if not os.path.exists(image_path):
|
412
420
|
image_path = os.path.join("./images", "up.png")
|
413
|
-
self.
|
421
|
+
self.graph_image_obj = Image.open(image_path)
|
422
|
+
self.graph_image = customtkinter.CTkImage(self.graph_image_obj, size=(1280, 720))
|
414
423
|
self.graph_label.configure(image=self.graph_image)
|
415
424
|
elif (selected_graph == "Table"):
|
416
425
|
self.selected_graph_name = "table"
|
417
426
|
image_path = os.path.join(folder, self.selected_graph_name + ".png")
|
418
427
|
if not os.path.exists(image_path):
|
419
428
|
image_path = os.path.join("./images", "up.png")
|
420
|
-
self.
|
429
|
+
self.graph_image_obj = Image.open(image_path)
|
430
|
+
self.graph_image = customtkinter.CTkImage(self.graph_image_obj, size=(1280, 720))
|
421
431
|
self.graph_label.configure(image=self.graph_image)
|
422
432
|
elif (selected_graph == "Calibrated Parameters"):
|
423
433
|
self.selected_graph_name = "calibrated_params_by_round"
|
424
434
|
image_path = os.path.join(folder, self.selected_graph_name + ".png")
|
425
435
|
if not os.path.exists(image_path):
|
426
436
|
image_path = os.path.join("./images", "up.png")
|
427
|
-
self.
|
437
|
+
self.graph_image_obj = Image.open(image_path)
|
438
|
+
self.graph_image = customtkinter.CTkImage(self.graph_image_obj, size=(1280, 720))
|
428
439
|
self.graph_label.configure(image=self.graph_image)
|
429
440
|
|
430
441
|
def save_project(self):
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|