mg-pso-gui 0.2.43__py3-none-any.whl → 0.2.44__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.2.43
3
+ Version: 0.2.44
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=TbMtfTgOtYeaocfVTxeHz38qH6xsGV2i5ZAGIXTx3Ug,21615
4
+ mgpsogui/gui/HomePage.py,sha256=X1CrgrHKPrG48QFQVo5_fqWRZaRMz_7W53jX6-bh3I8,21833
5
5
  mgpsogui/gui/OptionManager.py,sha256=HLVib_lHdMijykF78bJ9_PEl-oROuC8lxd1oBS7524U,21898
6
6
  mgpsogui/gui/OptionManager_backup.py,sha256=TCWfPnHL2foN5id47jsi267lamRG6yGU6y_M29eOOJk,18530
7
7
  mgpsogui/gui/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -26,7 +26,7 @@ mgpsogui/gui/SetupTab/StepView.py,sha256=e3QhepeAfDJdhefsJvzyppRuMdVAFKEnbZLtrFI
26
26
  mgpsogui/gui/SetupTab/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
27
27
  mgpsogui/gui/VisualizeTab/MatrixEditor.py,sha256=Gzyl2hRgjIfO5n0bCZZoXp_vOFvfsJPaGXDUMeRQg10,3171
28
28
  mgpsogui/gui/VisualizeTab/SideBar.py,sha256=wPjzA8ZZsCTxBKN0_6-_ABtU5BeHqytNAWfKCWAPoe8,22106
29
- mgpsogui/gui/VisualizeTab/VisualizeTab.py,sha256=xeZS1J4RexoFgsKeJDdWi81Hy8xicROGTdawwcGk2O4,6724
29
+ mgpsogui/gui/VisualizeTab/VisualizeTab.py,sha256=6ybwiVOXw5NAhG9ShnwdpbSfCHjNs-50dvEN7SxGmjU,6696
30
30
  mgpsogui/gui/VisualizeTab/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
31
31
  mgpsogui/gui/defaults/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
32
32
  mgpsogui/gui/defaults/optimization.json,sha256=bd_XxTKtKN_ErZoxtZmhltWID-sDJAdxzsqt9qBSsh8,3629
@@ -69,8 +69,8 @@ mgpsogui/util/recosu/utils/trace_writer.py,sha256=V9BJlOjCbNYGoXGEk3CF5wjifBxvar
69
69
  mgpsogui/util/recosu/utils/utils.py,sha256=QB8vftq3142ekG0ORjz0ZBHU5YknXbR0oTsrxrPAsF0,3951
70
70
  mgpsogui/util/recosu/utils/plot/__init__.py,sha256=h1KjM7_tNDv351pcwt8A6Ibb1jhwWyx5Gbu-zj-sI3Q,71
71
71
  mgpsogui/util/recosu/utils/plot/cost_steps.py,sha256=1Ce11AJyweWkmvjXPxEygzS-h8yVLmQEDLS53yjPLqQ,3779
72
- mg_pso_gui-0.2.43.dist-info/METADATA,sha256=jDa_vHTLXQi2UruNBedCVlh5f2rp2u1SC55DcPUyhFU,9455
73
- mg_pso_gui-0.2.43.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
74
- mg_pso_gui-0.2.43.dist-info/entry_points.txt,sha256=jg82VOFjR1XDGrchs1wJSCqKYE4Ozv12aBcCSp--koA,117
75
- mg_pso_gui-0.2.43.dist-info/top_level.txt,sha256=y7JuS9xJN5YdxUsQ3PSVjN8MzQAnR146bP3ZN3PYWdE,9
76
- mg_pso_gui-0.2.43.dist-info/RECORD,,
72
+ mg_pso_gui-0.2.44.dist-info/METADATA,sha256=CBRddkCBl5EbQVxtxgS3jTJHuWYqPDjr1USq-NyU-OA,9455
73
+ mg_pso_gui-0.2.44.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
74
+ mg_pso_gui-0.2.44.dist-info/entry_points.txt,sha256=jg82VOFjR1XDGrchs1wJSCqKYE4Ozv12aBcCSp--koA,117
75
+ mg_pso_gui-0.2.44.dist-info/top_level.txt,sha256=y7JuS9xJN5YdxUsQ3PSVjN8MzQAnR146bP3ZN3PYWdE,9
76
+ mg_pso_gui-0.2.44.dist-info/RECORD,,
mgpsogui/gui/HomePage.py CHANGED
@@ -235,6 +235,8 @@ class App(customtkinter.CTk):
235
235
  def refresh_step_view(self, value):
236
236
  mode = self.option_manager.get_mode()
237
237
  self.service_url.configure(textvariable=self.option_manager.get("url"))
238
+ self.graph_theme.configure(variable=self.option_manager.get("graph_theme"))
239
+ self.graph_selector.configure(variable=self.option_manager.get("selected_graph"))
238
240
 
239
241
  if mode == "Optimization":
240
242
  self.test_button.configure(state="normal")
@@ -247,6 +249,9 @@ class App(customtkinter.CTk):
247
249
  self.download_button.configure(state="disabled")
248
250
  self.download_button.configure(fg_color="gray")
249
251
 
252
+ self.vis_sidebar.clear()
253
+ self.vis_sidebar.render()
254
+
250
255
  self.steps_frame.clear()
251
256
  self.steps_frame.render()
252
257
 
@@ -116,7 +116,8 @@ def create_tab(self, tab):
116
116
  self.graph_container.grid_columnconfigure(0, weight=1)
117
117
  self.graph_container.grid_rowconfigure(0, weight=1)
118
118
 
119
- self.graph_selector = customtkinter.CTkOptionMenu(self.graph_sidebar, values=["Best Cost Stacked", "Best Cost by Round", "Custom CSV", "Compare CSV", "Sampling CSV", "Matrix Editor"], variable=self.graph_selector_value, command=self.update_graph)
119
+ graph_types = ["Best Cost Stacked", "Best Cost by Round", "Custom CSV", "Compare CSV", "Sampling CSV", "Matrix Editor"]
120
+ self.graph_selector = customtkinter.CTkOptionMenu(self.graph_sidebar, values=graph_types, variable=self.option_manager.get("selected_graph"), command=self.update_graph)
120
121
  self.graph_selector.grid(row=0, column=0, padx=(20, 20), pady=(20, 20), sticky="nsew")
121
122
 
122
123
  # Create SideBar
@@ -124,7 +125,7 @@ def create_tab(self, tab):
124
125
  self.vis_sidebar.grid(row=1, column=0, rowspan=6, padx=(0, 0), pady=(0, 0), sticky="nsew")
125
126
 
126
127
 
127
- self.graph_theme = customtkinter.CTkOptionMenu(self.graph_sidebar, values=["Dark", "Light", "Publication"], variable=self.graph_theme_value, command=self.update_graph)
128
+ self.graph_theme = customtkinter.CTkOptionMenu(self.graph_sidebar, values=["Dark", "Light", "Publication"], variable=self.option_manager.get("graph_theme"), command=self.update_graph)
128
129
  self.graph_theme.grid(row=7, column=0, padx=(20, 20), pady=(20, 20), sticky="nsew")
129
130
 
130
131
  self.graph_export = customtkinter.CTkButton(self.graph_sidebar, text="Export", command=export_graph)
@@ -138,5 +139,3 @@ def create_tab(self, tab):
138
139
  self.graph_image = customtkinter.CTkImage(self.graph_image_obj, size=(1280, 720))
139
140
  self.graph_label = customtkinter.CTkLabel(self.graph_container, text=None, image=self.graph_image)
140
141
  self.graph_label.grid(row=0, column=0, padx=(20, 20), pady=(20, 20), sticky="nsew")
141
- #window = customtkinter.CTk()
142
- #self.graph_label.bind('<Configure>', _resize_image)