mg-pso-gui 0.1.21__py3-none-any.whl → 0.1.22__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.21
3
+ Version: 0.1.22
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=1WTBEhe6KRujPgNb-NwRhFGDbAmP2Zayx3Pp6FHHwD0,22313
4
+ mgpsogui/gui/HomePage.py,sha256=jxrIwVJMMZ-RiFbAveMz6n0JaWev-S5lLwhQ_YEV8fQ,22539
5
5
  mgpsogui/gui/OptionManager.py,sha256=bFN2jWJbx1Din3waOFLmbWGt0BXD_KthGJ8Mgue_FEE,11712
6
6
  mgpsogui/gui/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  mgpsogui/gui/PlatformTab/PlatformTab.py,sha256=KyIoHlMKD9nfQqHeGJwRDA4RCoe4UykjB2l6xMTKK_M,10486
@@ -44,8 +44,8 @@ mgpsogui/util/recosu/utils/trace_writer.py,sha256=V9BJlOjCbNYGoXGEk3CF5wjifBxvar
44
44
  mgpsogui/util/recosu/utils/utils.py,sha256=QB8vftq3142ekG0ORjz0ZBHU5YknXbR0oTsrxrPAsF0,3951
45
45
  mgpsogui/util/recosu/utils/plot/__init__.py,sha256=h1KjM7_tNDv351pcwt8A6Ibb1jhwWyx5Gbu-zj-sI3Q,71
46
46
  mgpsogui/util/recosu/utils/plot/cost_steps.py,sha256=1Ce11AJyweWkmvjXPxEygzS-h8yVLmQEDLS53yjPLqQ,3779
47
- mg_pso_gui-0.1.21.dist-info/METADATA,sha256=yTHYuuaKMSXJBLT20CXrqxbDOjxdIRAO6mdUbCEh1cU,9458
48
- mg_pso_gui-0.1.21.dist-info/WHEEL,sha256=Xo9-1PvkuimrydujYJAjF7pCkriuXBpUPEjma1nZyJ0,92
49
- mg_pso_gui-0.1.21.dist-info/entry_points.txt,sha256=jg82VOFjR1XDGrchs1wJSCqKYE4Ozv12aBcCSp--koA,117
50
- mg_pso_gui-0.1.21.dist-info/top_level.txt,sha256=y7JuS9xJN5YdxUsQ3PSVjN8MzQAnR146bP3ZN3PYWdE,9
51
- mg_pso_gui-0.1.21.dist-info/RECORD,,
47
+ mg_pso_gui-0.1.22.dist-info/METADATA,sha256=1psPUPAnPydj8ytjyCQEFpkoozgetX8XBCPcefeNpSQ,9458
48
+ mg_pso_gui-0.1.22.dist-info/WHEEL,sha256=Xo9-1PvkuimrydujYJAjF7pCkriuXBpUPEjma1nZyJ0,92
49
+ mg_pso_gui-0.1.22.dist-info/entry_points.txt,sha256=jg82VOFjR1XDGrchs1wJSCqKYE4Ozv12aBcCSp--koA,117
50
+ mg_pso_gui-0.1.22.dist-info/top_level.txt,sha256=y7JuS9xJN5YdxUsQ3PSVjN8MzQAnR146bP3ZN3PYWdE,9
51
+ mg_pso_gui-0.1.22.dist-info/RECORD,,
mgpsogui/gui/HomePage.py CHANGED
@@ -175,6 +175,8 @@ class App(customtkinter.CTk):
175
175
  ctt(self.download_button, delay=0.1, alpha=0.95, message="Download Results")
176
176
  self.download_button.grid(row=0, column=10, padx=(5, 20), pady=header_padding_y)
177
177
 
178
+ self.after(1000, self.running_loop)
179
+
178
180
  '''def _resize_image(self, event):
179
181
  self.graph_label.update_idletasks()
180
182
  new_width = self.graph_label.winfo_width()
@@ -432,6 +434,16 @@ class App(customtkinter.CTk):
432
434
  self.footer_progress_label.configure(text="Stopped")
433
435
  self.progress_message_right.configure(text="")
434
436
 
437
+ def running_loop(self):
438
+ try:
439
+ active_tab = self.tabview.get()
440
+ if (active_tab == "Results"):
441
+ GraphGenerator.generate_graphs(self)
442
+ else:
443
+ print(active_tab)
444
+ finally:
445
+ self.after(1000, self.running_loop)
446
+
435
447
  def watch_loop(self):
436
448
  # Check if file exists:
437
449
  info = self.option_manager.get_project_data()
@@ -579,7 +591,7 @@ class App(customtkinter.CTk):
579
591
  self.progress_message_right.configure(text="")
580
592
  self.textbox.insert("0.0", "\nCalibration finished!\n")
581
593
 
582
- GraphGenerator.generate_graphs(self)
594
+
583
595
 
584
596
 
585
597
  def start():