mg-pso-gui 0.0.102__py3-none-any.whl → 0.0.103__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mg-pso-gui
3
- Version: 0.0.102
3
+ Version: 0.0.103
4
4
  Summary: GUI for MG-PSO
5
5
  Author: Robert Cordingly
6
6
  Author-email: <rcording@uw.ed>
@@ -5,7 +5,7 @@ mgpsogui/gui/BoundsEditorWindow.py,sha256=tDCap4qFQw3MRQo0d81W3vqmQlWQGNZYPh0Tyh
5
5
  mgpsogui/gui/BoundsList.py,sha256=gNhK8ZbTMcfMssV0iL8zKqqhewiEGtKce8hHCV40OhQ,12263
6
6
  mgpsogui/gui/CalibrationParametersView.py,sha256=ppVBHG3nphku9-P6Z8az-HTpgk8vHxnj-A5m80BZTgA,2784
7
7
  mgpsogui/gui/FunctionsList.py,sha256=bTH_OeWqwXdJLKOLEclqrJ-wAZ4pNGPP-oCf5eOqQjo,3822
8
- mgpsogui/gui/HomePage.py,sha256=rbRGOrSo1oHAJLoTR159XRSmr4bhdz-9Y6X8VOH3RdE,35401
8
+ mgpsogui/gui/HomePage.py,sha256=WPPHJeVVq7H_R9pcdL-dNq8lUQcGETqZWoYWf3y4wzg,35681
9
9
  mgpsogui/gui/ListParametersView.py,sha256=wYcDcaooYkw-y7XW6dJUwhTWxLuUUOK5tGUFVHBf3ck,7352
10
10
  mgpsogui/gui/OptionManager.py,sha256=EPRe9hmtjnnzY2WBWZKbVmvGONfCWTq3Ti2mdGV_vZw,11149
11
11
  mgpsogui/gui/StaticParameterView.py,sha256=iEG-UpBBlAJabZo3MG768oLqOROjUPc23tKOSd47IUc,2739
@@ -21,8 +21,8 @@ mgpsogui/util/PSORunner.py,sha256=7iUYRUXgpZ0l0rqoyHQYY1Yg9q0gl9TE0jNaHZMv04c,29
21
21
  mgpsogui/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
22
22
  mgpsogui/util/CTkToolTip/__init__.py,sha256=G1jxV55hGtGgwyC1sR-uUUdasDdh0XZgcI-aILgGYA0,225
23
23
  mgpsogui/util/CTkToolTip/ctk_tooltip.py,sha256=SZMovpQIGvdpDRbqCKl9SHs92DrFCO2MOYL2ifolvOE,6329
24
- mg_pso_gui-0.0.102.dist-info/METADATA,sha256=fVrc98U_N6AzXHW1D7JdSyVzie7IsgXF0dVda7mvuk8,9459
25
- mg_pso_gui-0.0.102.dist-info/WHEEL,sha256=Xo9-1PvkuimrydujYJAjF7pCkriuXBpUPEjma1nZyJ0,92
26
- mg_pso_gui-0.0.102.dist-info/entry_points.txt,sha256=jg82VOFjR1XDGrchs1wJSCqKYE4Ozv12aBcCSp--koA,117
27
- mg_pso_gui-0.0.102.dist-info/top_level.txt,sha256=y7JuS9xJN5YdxUsQ3PSVjN8MzQAnR146bP3ZN3PYWdE,9
28
- mg_pso_gui-0.0.102.dist-info/RECORD,,
24
+ mg_pso_gui-0.0.103.dist-info/METADATA,sha256=I4IMxRF3HA7V2xOrFS2k1PNh6Az7o2AfnBK_S4akUQE,9459
25
+ mg_pso_gui-0.0.103.dist-info/WHEEL,sha256=Xo9-1PvkuimrydujYJAjF7pCkriuXBpUPEjma1nZyJ0,92
26
+ mg_pso_gui-0.0.103.dist-info/entry_points.txt,sha256=jg82VOFjR1XDGrchs1wJSCqKYE4Ozv12aBcCSp--koA,117
27
+ mg_pso_gui-0.0.103.dist-info/top_level.txt,sha256=y7JuS9xJN5YdxUsQ3PSVjN8MzQAnR146bP3ZN3PYWdE,9
28
+ mg_pso_gui-0.0.103.dist-info/RECORD,,
mgpsogui/gui/HomePage.py CHANGED
@@ -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.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
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.graph_image.resize((new_width,new_height))
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.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))
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.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))
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.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))
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.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))
434
439
  self.graph_label.configure(image=self.graph_image)
435
440
 
436
441
  def save_project(self):