mg-pso-gui 0.0.101__py3-none-any.whl → 0.0.102__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.101
3
+ Version: 0.0.102
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=KgGxr6Zfsabk0mNPzqOAxorbx_aYTuyNUbPynP4p3oE,35168
8
+ mgpsogui/gui/HomePage.py,sha256=rbRGOrSo1oHAJLoTR159XRSmr4bhdz-9Y6X8VOH3RdE,35401
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.101.dist-info/METADATA,sha256=a3_sTUQ1UorWu9zmTvdA-PaH00OrVXCU9rs9hJBR7po,9459
25
- mg_pso_gui-0.0.101.dist-info/WHEEL,sha256=Xo9-1PvkuimrydujYJAjF7pCkriuXBpUPEjma1nZyJ0,92
26
- mg_pso_gui-0.0.101.dist-info/entry_points.txt,sha256=jg82VOFjR1XDGrchs1wJSCqKYE4Ozv12aBcCSp--koA,117
27
- mg_pso_gui-0.0.101.dist-info/top_level.txt,sha256=y7JuS9xJN5YdxUsQ3PSVjN8MzQAnR146bP3ZN3PYWdE,9
28
- mg_pso_gui-0.0.101.dist-info/RECORD,,
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,,
mgpsogui/gui/HomePage.py CHANGED
@@ -270,8 +270,14 @@ class App(customtkinter.CTk):
270
270
 
271
271
  self.graph_image = customtkinter.CTkImage(Image.open(os.path.join("./images", "up.png")), size=(700, 500))
272
272
  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
273
  self.graph_label.grid(row=1, column=0, columnspan=3, padx=(20, 20), pady=(20, 20), sticky="nsew")
274
+ self.graph_label.bind('<Configure>',self._resize_image)
275
+
276
+ def _resize_image(self,event):
277
+ new_width = event.width
278
+ new_height = event.height
279
+ pilimg = self.graph_image.resize((new_width,new_height))
280
+ self.graph_label.configure(image=customtkinter.CTkImage(pilimg))
275
281
 
276
282
  def callback_test(self, *args):
277
283
  print("callback_test called")