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.
Files changed (32) hide show
  1. {mg-pso-gui-0.0.101 → mg-pso-gui-0.0.103}/PKG-INFO +1 -1
  2. {mg-pso-gui-0.0.101 → mg-pso-gui-0.0.103}/mg_pso_gui.egg-info/PKG-INFO +1 -1
  3. {mg-pso-gui-0.0.101 → mg-pso-gui-0.0.103}/mgpsogui/gui/HomePage.py +17 -6
  4. {mg-pso-gui-0.0.101 → mg-pso-gui-0.0.103}/setup.py +1 -1
  5. {mg-pso-gui-0.0.101 → mg-pso-gui-0.0.103}/mg_pso_gui.egg-info/SOURCES.txt +0 -0
  6. {mg-pso-gui-0.0.101 → mg-pso-gui-0.0.103}/mg_pso_gui.egg-info/dependency_links.txt +0 -0
  7. {mg-pso-gui-0.0.101 → mg-pso-gui-0.0.103}/mg_pso_gui.egg-info/entry_points.txt +0 -0
  8. {mg-pso-gui-0.0.101 → mg-pso-gui-0.0.103}/mg_pso_gui.egg-info/requires.txt +0 -0
  9. {mg-pso-gui-0.0.101 → mg-pso-gui-0.0.103}/mg_pso_gui.egg-info/top_level.txt +0 -0
  10. {mg-pso-gui-0.0.101 → mg-pso-gui-0.0.103}/mgpsogui/__init__.py +0 -0
  11. {mg-pso-gui-0.0.101 → mg-pso-gui-0.0.103}/mgpsogui/gui/BoundsEditorWindow.py +0 -0
  12. {mg-pso-gui-0.0.101 → mg-pso-gui-0.0.103}/mgpsogui/gui/BoundsList.py +0 -0
  13. {mg-pso-gui-0.0.101 → mg-pso-gui-0.0.103}/mgpsogui/gui/CalibrationParametersView.py +0 -0
  14. {mg-pso-gui-0.0.101 → mg-pso-gui-0.0.103}/mgpsogui/gui/FunctionsList.py +0 -0
  15. {mg-pso-gui-0.0.101 → mg-pso-gui-0.0.103}/mgpsogui/gui/ListParametersView.py +0 -0
  16. {mg-pso-gui-0.0.101 → mg-pso-gui-0.0.103}/mgpsogui/gui/OptionManager.py +0 -0
  17. {mg-pso-gui-0.0.101 → mg-pso-gui-0.0.103}/mgpsogui/gui/StaticParameterView.py +0 -0
  18. {mg-pso-gui-0.0.101 → mg-pso-gui-0.0.103}/mgpsogui/gui/StepView.py +0 -0
  19. {mg-pso-gui-0.0.101 → mg-pso-gui-0.0.103}/mgpsogui/gui/__init__.py +0 -0
  20. {mg-pso-gui-0.0.101 → mg-pso-gui-0.0.103}/mgpsogui/gui/images/collapse.png +0 -0
  21. {mg-pso-gui-0.0.101 → mg-pso-gui-0.0.103}/mgpsogui/gui/images/down.png +0 -0
  22. {mg-pso-gui-0.0.101 → mg-pso-gui-0.0.103}/mgpsogui/gui/images/expand.png +0 -0
  23. {mg-pso-gui-0.0.101 → mg-pso-gui-0.0.103}/mgpsogui/gui/images/trash.png +0 -0
  24. {mg-pso-gui-0.0.101 → mg-pso-gui-0.0.103}/mgpsogui/gui/images/up.png +0 -0
  25. {mg-pso-gui-0.0.101 → mg-pso-gui-0.0.103}/mgpsogui/mgpsogui.py +0 -0
  26. {mg-pso-gui-0.0.101 → mg-pso-gui-0.0.103}/mgpsogui/start.yaml +0 -0
  27. {mg-pso-gui-0.0.101 → mg-pso-gui-0.0.103}/mgpsogui/util/CTkToolTip/__init__.py +0 -0
  28. {mg-pso-gui-0.0.101 → mg-pso-gui-0.0.103}/mgpsogui/util/CTkToolTip/ctk_tooltip.py +0 -0
  29. {mg-pso-gui-0.0.101 → mg-pso-gui-0.0.103}/mgpsogui/util/GraphGenerator.py +0 -0
  30. {mg-pso-gui-0.0.101 → mg-pso-gui-0.0.103}/mgpsogui/util/PSORunner.py +0 -0
  31. {mg-pso-gui-0.0.101 → mg-pso-gui-0.0.103}/mgpsogui/util/__init__.py +0 -0
  32. {mg-pso-gui-0.0.101 → mg-pso-gui-0.0.103}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mg-pso-gui
3
- Version: 0.0.101
3
+ Version: 0.0.103
4
4
  Summary: GUI for MG-PSO
5
5
  Author: Robert Cordingly
6
6
  Author-email: <rcording@uw.ed>
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mg-pso-gui
3
- Version: 0.0.101
3
+ Version: 0.0.103
4
4
  Summary: GUI for MG-PSO
5
5
  Author: Robert Cordingly
6
6
  Author-email: <rcording@uw.ed>
@@ -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.graph_image = customtkinter.CTkImage(Image.open(os.path.join("./images", "up.png")), size=(700, 500))
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.graph_image = customtkinter.CTkImage(Image.open(image_path), size=(1280, 720))
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.graph_image = customtkinter.CTkImage(Image.open(image_path), size=(1280, 720))
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.graph_image = customtkinter.CTkImage(Image.open(image_path), size=(1280, 720))
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.graph_image = customtkinter.CTkImage(Image.open(image_path), size=(1280, 720))
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):
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
  import codecs
3
3
  import os
4
4
 
5
- VERSION = '0.0.101'
5
+ VERSION = '0.0.103'
6
6
  DESCRIPTION = 'GUI for MG-PSO'
7
7
  LONG_DESCRIPTION = open('../README.md').read()
8
8
 
File without changes