mg-pso-gui 0.0.102__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.102 → mg-pso-gui-0.0.103}/PKG-INFO +1 -1
- {mg-pso-gui-0.0.102 → mg-pso-gui-0.0.103}/mg_pso_gui.egg-info/PKG-INFO +1 -1
- {mg-pso-gui-0.0.102 → mg-pso-gui-0.0.103}/mgpsogui/gui/HomePage.py +11 -6
- {mg-pso-gui-0.0.102 → mg-pso-gui-0.0.103}/setup.py +1 -1
- {mg-pso-gui-0.0.102 → mg-pso-gui-0.0.103}/mg_pso_gui.egg-info/SOURCES.txt +0 -0
- {mg-pso-gui-0.0.102 → mg-pso-gui-0.0.103}/mg_pso_gui.egg-info/dependency_links.txt +0 -0
- {mg-pso-gui-0.0.102 → mg-pso-gui-0.0.103}/mg_pso_gui.egg-info/entry_points.txt +0 -0
- {mg-pso-gui-0.0.102 → mg-pso-gui-0.0.103}/mg_pso_gui.egg-info/requires.txt +0 -0
- {mg-pso-gui-0.0.102 → mg-pso-gui-0.0.103}/mg_pso_gui.egg-info/top_level.txt +0 -0
- {mg-pso-gui-0.0.102 → mg-pso-gui-0.0.103}/mgpsogui/__init__.py +0 -0
- {mg-pso-gui-0.0.102 → mg-pso-gui-0.0.103}/mgpsogui/gui/BoundsEditorWindow.py +0 -0
- {mg-pso-gui-0.0.102 → mg-pso-gui-0.0.103}/mgpsogui/gui/BoundsList.py +0 -0
- {mg-pso-gui-0.0.102 → mg-pso-gui-0.0.103}/mgpsogui/gui/CalibrationParametersView.py +0 -0
- {mg-pso-gui-0.0.102 → mg-pso-gui-0.0.103}/mgpsogui/gui/FunctionsList.py +0 -0
- {mg-pso-gui-0.0.102 → mg-pso-gui-0.0.103}/mgpsogui/gui/ListParametersView.py +0 -0
- {mg-pso-gui-0.0.102 → mg-pso-gui-0.0.103}/mgpsogui/gui/OptionManager.py +0 -0
- {mg-pso-gui-0.0.102 → mg-pso-gui-0.0.103}/mgpsogui/gui/StaticParameterView.py +0 -0
- {mg-pso-gui-0.0.102 → mg-pso-gui-0.0.103}/mgpsogui/gui/StepView.py +0 -0
- {mg-pso-gui-0.0.102 → mg-pso-gui-0.0.103}/mgpsogui/gui/__init__.py +0 -0
- {mg-pso-gui-0.0.102 → mg-pso-gui-0.0.103}/mgpsogui/gui/images/collapse.png +0 -0
- {mg-pso-gui-0.0.102 → mg-pso-gui-0.0.103}/mgpsogui/gui/images/down.png +0 -0
- {mg-pso-gui-0.0.102 → mg-pso-gui-0.0.103}/mgpsogui/gui/images/expand.png +0 -0
- {mg-pso-gui-0.0.102 → mg-pso-gui-0.0.103}/mgpsogui/gui/images/trash.png +0 -0
- {mg-pso-gui-0.0.102 → mg-pso-gui-0.0.103}/mgpsogui/gui/images/up.png +0 -0
- {mg-pso-gui-0.0.102 → mg-pso-gui-0.0.103}/mgpsogui/mgpsogui.py +0 -0
- {mg-pso-gui-0.0.102 → mg-pso-gui-0.0.103}/mgpsogui/start.yaml +0 -0
- {mg-pso-gui-0.0.102 → mg-pso-gui-0.0.103}/mgpsogui/util/CTkToolTip/__init__.py +0 -0
- {mg-pso-gui-0.0.102 → mg-pso-gui-0.0.103}/mgpsogui/util/CTkToolTip/ctk_tooltip.py +0 -0
- {mg-pso-gui-0.0.102 → mg-pso-gui-0.0.103}/mgpsogui/util/GraphGenerator.py +0 -0
- {mg-pso-gui-0.0.102 → mg-pso-gui-0.0.103}/mgpsogui/util/PSORunner.py +0 -0
- {mg-pso-gui-0.0.102 → mg-pso-gui-0.0.103}/mgpsogui/util/__init__.py +0 -0
- {mg-pso-gui-0.0.102 → mg-pso-gui-0.0.103}/setup.cfg +0 -0
@@ -268,7 +268,8 @@ 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
274
|
self.graph_label.grid(row=1, column=0, columnspan=3, padx=(20, 20), pady=(20, 20), sticky="nsew")
|
274
275
|
self.graph_label.bind('<Configure>',self._resize_image)
|
@@ -276,7 +277,7 @@ class App(customtkinter.CTk):
|
|
276
277
|
def _resize_image(self,event):
|
277
278
|
new_width = event.width
|
278
279
|
new_height = event.height
|
279
|
-
pilimg = self.
|
280
|
+
pilimg = self.graph_image_obj.resize((new_width,new_height))
|
280
281
|
self.graph_label.configure(image=customtkinter.CTkImage(pilimg))
|
281
282
|
|
282
283
|
def callback_test(self, *args):
|
@@ -409,28 +410,32 @@ class App(customtkinter.CTk):
|
|
409
410
|
image_path = os.path.join(folder, self.selected_graph_name + ".png")
|
410
411
|
if not os.path.exists(image_path):
|
411
412
|
image_path = os.path.join("./images", "up.png")
|
412
|
-
self.
|
413
|
+
self.graph_image_obj = Image.open(image_path)
|
414
|
+
self.graph_image = customtkinter.CTkImage(self.graph_image_obj, size=(1280, 720))
|
413
415
|
self.graph_label.configure(image=self.graph_image)
|
414
416
|
elif (selected_graph == "Best Cost by Round"):
|
415
417
|
self.selected_graph_name = "best_cost_by_round"
|
416
418
|
image_path = os.path.join(folder, self.selected_graph_name + ".png")
|
417
419
|
if not os.path.exists(image_path):
|
418
420
|
image_path = os.path.join("./images", "up.png")
|
419
|
-
self.
|
421
|
+
self.graph_image_obj = Image.open(image_path)
|
422
|
+
self.graph_image = customtkinter.CTkImage(self.graph_image_obj, size=(1280, 720))
|
420
423
|
self.graph_label.configure(image=self.graph_image)
|
421
424
|
elif (selected_graph == "Table"):
|
422
425
|
self.selected_graph_name = "table"
|
423
426
|
image_path = os.path.join(folder, self.selected_graph_name + ".png")
|
424
427
|
if not os.path.exists(image_path):
|
425
428
|
image_path = os.path.join("./images", "up.png")
|
426
|
-
self.
|
429
|
+
self.graph_image_obj = Image.open(image_path)
|
430
|
+
self.graph_image = customtkinter.CTkImage(self.graph_image_obj, size=(1280, 720))
|
427
431
|
self.graph_label.configure(image=self.graph_image)
|
428
432
|
elif (selected_graph == "Calibrated Parameters"):
|
429
433
|
self.selected_graph_name = "calibrated_params_by_round"
|
430
434
|
image_path = os.path.join(folder, self.selected_graph_name + ".png")
|
431
435
|
if not os.path.exists(image_path):
|
432
436
|
image_path = os.path.join("./images", "up.png")
|
433
|
-
self.
|
437
|
+
self.graph_image_obj = Image.open(image_path)
|
438
|
+
self.graph_image = customtkinter.CTkImage(self.graph_image_obj, size=(1280, 720))
|
434
439
|
self.graph_label.configure(image=self.graph_image)
|
435
440
|
|
436
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
|