mg-pso-gui 0.1.90__py3-none-any.whl → 0.1.91__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.1.90
3
+ Version: 0.1.91
4
4
  Summary: GUI for MG-PSO
5
5
  Author: Robert Cordingly
6
6
  Author-email: <rcording@uw.ed>
@@ -1,7 +1,7 @@
1
1
  mgpsogui/__init__.py,sha256=q7AfBjeJABnFtbsZnsObpUwaXKPDVYtz46G6MKXLF74,42
2
2
  mgpsogui/mgpsogui.py,sha256=NIZmyNcbwC8EgSwf1ubdMUSJscrIEgoD4jLYziqHQ-k,148
3
3
  mgpsogui/start.yaml,sha256=ZjCVLb-MLqAxrGRm9kA7_SDpa-45EuKIELNQ2QqCAiU,4713
4
- mgpsogui/gui/HomePage.py,sha256=hst3TcPmEFb7cn4yZE4i8kGZpLEJt0RCB9MwCTSvuyc,24070
4
+ mgpsogui/gui/HomePage.py,sha256=4PbGixtQobhvuFQM3qjxlDhaVk9gKUdj2QxOxoJCHpY,24166
5
5
  mgpsogui/gui/OptionManager.py,sha256=H5ofd7PA5f6dVfSghUhKdPiqLHNE0IVpPPzf93k7JD4,12527
6
6
  mgpsogui/gui/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  mgpsogui/gui/PlatformTab/PlatformTab.py,sha256=KyIoHlMKD9nfQqHeGJwRDA4RCoe4UykjB2l6xMTKK_M,10486
@@ -46,8 +46,8 @@ mgpsogui/util/recosu/utils/trace_writer.py,sha256=V9BJlOjCbNYGoXGEk3CF5wjifBxvar
46
46
  mgpsogui/util/recosu/utils/utils.py,sha256=QB8vftq3142ekG0ORjz0ZBHU5YknXbR0oTsrxrPAsF0,3951
47
47
  mgpsogui/util/recosu/utils/plot/__init__.py,sha256=h1KjM7_tNDv351pcwt8A6Ibb1jhwWyx5Gbu-zj-sI3Q,71
48
48
  mgpsogui/util/recosu/utils/plot/cost_steps.py,sha256=1Ce11AJyweWkmvjXPxEygzS-h8yVLmQEDLS53yjPLqQ,3779
49
- mg_pso_gui-0.1.90.dist-info/METADATA,sha256=m-4PovJ53Rm4DQA3CQUjAeWxxr05zThsqeg6bARqbzk,9458
50
- mg_pso_gui-0.1.90.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
51
- mg_pso_gui-0.1.90.dist-info/entry_points.txt,sha256=jg82VOFjR1XDGrchs1wJSCqKYE4Ozv12aBcCSp--koA,117
52
- mg_pso_gui-0.1.90.dist-info/top_level.txt,sha256=y7JuS9xJN5YdxUsQ3PSVjN8MzQAnR146bP3ZN3PYWdE,9
53
- mg_pso_gui-0.1.90.dist-info/RECORD,,
49
+ mg_pso_gui-0.1.91.dist-info/METADATA,sha256=OlDhEy-RC7bAq8ItXara_wLkFj-DnB_UBhWsVLIe0WE,9458
50
+ mg_pso_gui-0.1.91.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
51
+ mg_pso_gui-0.1.91.dist-info/entry_points.txt,sha256=jg82VOFjR1XDGrchs1wJSCqKYE4Ozv12aBcCSp--koA,117
52
+ mg_pso_gui-0.1.91.dist-info/top_level.txt,sha256=y7JuS9xJN5YdxUsQ3PSVjN8MzQAnR146bP3ZN3PYWdE,9
53
+ mg_pso_gui-0.1.91.dist-info/RECORD,,
mgpsogui/gui/HomePage.py CHANGED
@@ -138,7 +138,7 @@ class App(customtkinter.CTk):
138
138
  self.scaling_optionemenu.set("100%")
139
139
 
140
140
  expand_image = customtkinter.CTkImage(Image.open(os.path.join("./images", "expand.png")), size=(20, 20))
141
- self.new_window = customtkinter.CTkButton(self.sidebar_frame, text=None, width=30, image=expand_image, command=self.new_window)
141
+ self.new_window = customtkinter.CTkButton(self.sidebar_frame, text=None, width=30, image=expand_image, command=self.open_new_window)
142
142
  ctt(self.new_window, delay=0.1, alpha=0.95, message="Open New Window")
143
143
  self.new_window.grid(row=0, column=8, padx=(5, 20), pady=header_padding_y)
144
144
 
@@ -174,7 +174,7 @@ class App(customtkinter.CTk):
174
174
  self.footer_progress_bar.grid(row=0, column=4, padx=(50, 100), pady=header_padding_y, sticky="ew")
175
175
  self.footer_progress_bar.set(0)
176
176
 
177
- self.algorithm_optionmenu = customtkinter.CTkOptionMenu(self.footer_frame, variable=self.option_manager.get_arguments()['mode'], values=["PSO", "Halton"], width=50, command=self.step_frame.refresh)
177
+ self.algorithm_optionmenu = customtkinter.CTkOptionMenu(self.footer_frame, variable=self.option_manager.get_arguments()['mode'], values=["PSO", "Halton"], width=50, command=self.refresh_step_view)
178
178
  self.algorithm_optionmenu.grid(row=0, column=6, padx=header_padding_x, pady=header_padding_y)
179
179
  self.algorithm_optionmenu.set("PSO")
180
180
 
@@ -274,7 +274,11 @@ class App(customtkinter.CTk):
274
274
  print(e)
275
275
  self.after(3000, lambda: self.save_button.configure(text="Save"))
276
276
 
277
- def new_window(self):
277
+ def refresh_step_view(self):
278
+ self.steps_frame.clear()
279
+ self.steps_frame.render()
280
+
281
+ def open_new_window(self):
278
282
  # Shell out and run ./main.py
279
283
  subprocess.Popen(["python3", "../mgpsogui.py"])
280
284