mg-pso-gui 0.0.154__tar.gz → 0.0.155__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. {mg-pso-gui-0.0.154 → mg-pso-gui-0.0.155}/PKG-INFO +1 -1
  2. {mg-pso-gui-0.0.154 → mg-pso-gui-0.0.155}/mg_pso_gui.egg-info/PKG-INFO +1 -1
  3. {mg-pso-gui-0.0.154 → mg-pso-gui-0.0.155}/mgpsogui/gui/HomePage.py +35 -2
  4. {mg-pso-gui-0.0.154 → mg-pso-gui-0.0.155}/setup.py +1 -1
  5. {mg-pso-gui-0.0.154 → mg-pso-gui-0.0.155}/mg_pso_gui.egg-info/SOURCES.txt +0 -0
  6. {mg-pso-gui-0.0.154 → mg-pso-gui-0.0.155}/mg_pso_gui.egg-info/dependency_links.txt +0 -0
  7. {mg-pso-gui-0.0.154 → mg-pso-gui-0.0.155}/mg_pso_gui.egg-info/entry_points.txt +0 -0
  8. {mg-pso-gui-0.0.154 → mg-pso-gui-0.0.155}/mg_pso_gui.egg-info/requires.txt +0 -0
  9. {mg-pso-gui-0.0.154 → mg-pso-gui-0.0.155}/mg_pso_gui.egg-info/top_level.txt +0 -0
  10. {mg-pso-gui-0.0.154 → mg-pso-gui-0.0.155}/mgpsogui/__init__.py +0 -0
  11. {mg-pso-gui-0.0.154 → mg-pso-gui-0.0.155}/mgpsogui/gui/OptionManager.py +0 -0
  12. {mg-pso-gui-0.0.154 → mg-pso-gui-0.0.155}/mgpsogui/gui/PlatformTab/PlatformTab.py +0 -0
  13. {mg-pso-gui-0.0.154 → mg-pso-gui-0.0.155}/mgpsogui/gui/PlatformTab/__init__.py +0 -0
  14. {mg-pso-gui-0.0.154 → mg-pso-gui-0.0.155}/mgpsogui/gui/RunTab/RunTab.py +0 -0
  15. {mg-pso-gui-0.0.154 → mg-pso-gui-0.0.155}/mgpsogui/gui/RunTab/__init__.py +0 -0
  16. {mg-pso-gui-0.0.154 → mg-pso-gui-0.0.155}/mgpsogui/gui/SetupTab/BoundsEditorWindow.py +0 -0
  17. {mg-pso-gui-0.0.154 → mg-pso-gui-0.0.155}/mgpsogui/gui/SetupTab/BoundsList.py +0 -0
  18. {mg-pso-gui-0.0.154 → mg-pso-gui-0.0.155}/mgpsogui/gui/SetupTab/CalibrationParametersView.py +0 -0
  19. {mg-pso-gui-0.0.154 → mg-pso-gui-0.0.155}/mgpsogui/gui/SetupTab/FunctionsList.py +0 -0
  20. {mg-pso-gui-0.0.154 → mg-pso-gui-0.0.155}/mgpsogui/gui/SetupTab/ListParametersView.py +0 -0
  21. {mg-pso-gui-0.0.154 → mg-pso-gui-0.0.155}/mgpsogui/gui/SetupTab/SetupTab.py +0 -0
  22. {mg-pso-gui-0.0.154 → mg-pso-gui-0.0.155}/mgpsogui/gui/SetupTab/StaticParameterView.py +0 -0
  23. {mg-pso-gui-0.0.154 → mg-pso-gui-0.0.155}/mgpsogui/gui/SetupTab/StepView.py +0 -0
  24. {mg-pso-gui-0.0.154 → mg-pso-gui-0.0.155}/mgpsogui/gui/SetupTab/__init__.py +0 -0
  25. {mg-pso-gui-0.0.154 → mg-pso-gui-0.0.155}/mgpsogui/gui/VisualizeTab/VisualizeTab.py +0 -0
  26. {mg-pso-gui-0.0.154 → mg-pso-gui-0.0.155}/mgpsogui/gui/VisualizeTab/__init__.py +0 -0
  27. {mg-pso-gui-0.0.154 → mg-pso-gui-0.0.155}/mgpsogui/gui/__init__.py +0 -0
  28. {mg-pso-gui-0.0.154 → mg-pso-gui-0.0.155}/mgpsogui/gui/images/collapse.png +0 -0
  29. {mg-pso-gui-0.0.154 → mg-pso-gui-0.0.155}/mgpsogui/gui/images/down.png +0 -0
  30. {mg-pso-gui-0.0.154 → mg-pso-gui-0.0.155}/mgpsogui/gui/images/expand.png +0 -0
  31. {mg-pso-gui-0.0.154 → mg-pso-gui-0.0.155}/mgpsogui/gui/images/play.png +0 -0
  32. {mg-pso-gui-0.0.154 → mg-pso-gui-0.0.155}/mgpsogui/gui/images/refresh.png +0 -0
  33. {mg-pso-gui-0.0.154 → mg-pso-gui-0.0.155}/mgpsogui/gui/images/stop.png +0 -0
  34. {mg-pso-gui-0.0.154 → mg-pso-gui-0.0.155}/mgpsogui/gui/images/trash.png +0 -0
  35. {mg-pso-gui-0.0.154 → mg-pso-gui-0.0.155}/mgpsogui/gui/images/up.png +0 -0
  36. {mg-pso-gui-0.0.154 → mg-pso-gui-0.0.155}/mgpsogui/mgpsogui.py +0 -0
  37. {mg-pso-gui-0.0.154 → mg-pso-gui-0.0.155}/mgpsogui/start.yaml +0 -0
  38. {mg-pso-gui-0.0.154 → mg-pso-gui-0.0.155}/mgpsogui/util/CTkToolTip/__init__.py +0 -0
  39. {mg-pso-gui-0.0.154 → mg-pso-gui-0.0.155}/mgpsogui/util/CTkToolTip/ctk_tooltip.py +0 -0
  40. {mg-pso-gui-0.0.154 → mg-pso-gui-0.0.155}/mgpsogui/util/GraphGenerator.py +0 -0
  41. {mg-pso-gui-0.0.154 → mg-pso-gui-0.0.155}/mgpsogui/util/PSORunner.py +0 -0
  42. {mg-pso-gui-0.0.154 → mg-pso-gui-0.0.155}/mgpsogui/util/__init__.py +0 -0
  43. {mg-pso-gui-0.0.154 → mg-pso-gui-0.0.155}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mg-pso-gui
3
- Version: 0.0.154
3
+ Version: 0.0.155
4
4
  Summary: GUI for MG-PSO
5
5
  Author: Robert Cordingly
6
6
  Author-email: <rcording@uw.ed>
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mg-pso-gui
3
- Version: 0.0.154
3
+ Version: 0.0.155
4
4
  Summary: GUI for MG-PSO
5
5
  Author: Robert Cordingly
6
6
  Author-email: <rcording@uw.ed>
@@ -8,6 +8,8 @@ print(dir_path)
8
8
 
9
9
  # minikube kubectl -- create -f ../start.yaml ; sleep 60 ; minikube service pf8087-csu-csip-oms -n csip
10
10
 
11
+ import requests
12
+
11
13
  import tkinter as tk
12
14
  import tkinter.messagebox
13
15
  import customtkinter
@@ -78,7 +80,7 @@ class App(customtkinter.CTk):
78
80
  self.sidebar_frame.grid(row=0, column=0, sticky="nsew")
79
81
  self.sidebar_frame.grid_columnconfigure(4, weight=1)
80
82
  self.logo_label = customtkinter.CTkLabel(self.sidebar_frame, text="CSIP PSO", font=customtkinter.CTkFont(size=20, weight="bold"))
81
- self.logo_label.grid(row=0, column=0, padx=(20, 5), pady=header_padding_y)
83
+ self.logo_label.grid(row=0, column=0, padx=(20, 10), pady=header_padding_y)
82
84
  self.save_button = customtkinter.CTkButton(self.sidebar_frame, text="Save", width=60, command=self.save_project)
83
85
  self.save_button.grid(row=0, column=1, padx=header_padding_x, pady=header_padding_y)
84
86
  self.load_button = customtkinter.CTkButton(self.sidebar_frame, text="Load", width=60, command=self.load_project)
@@ -129,7 +131,7 @@ class App(customtkinter.CTk):
129
131
  self.footer_frame.grid(row=2, column=0, sticky="nsew")
130
132
  self.footer_frame.grid_columnconfigure(4, weight=1)
131
133
 
132
- self.footer_progress_label = customtkinter.CTkLabel(self.footer_frame, text="Stopped", width=150, font=customtkinter.CTkFont(size=16, weight="bold"), anchor="e")
134
+ self.footer_progress_label = customtkinter.CTkLabel(self.footer_frame, text="Stopped", width=150, font=customtkinter.CTkFont(size=16, weight="bold"), anchor="w")
133
135
  self.footer_progress_label.grid(row=0, column=0, padx=(20, 5), pady=header_padding_y)
134
136
 
135
137
  self.footer_progress_bar = customtkinter.CTkProgressBar(self.footer_frame)
@@ -282,6 +284,37 @@ class App(customtkinter.CTk):
282
284
  def change_scaling_event(self, new_scaling: str):
283
285
  new_scaling_float = int(new_scaling.replace("%", "")) / 100
284
286
  customtkinter.set_widget_scaling(new_scaling_float)
287
+
288
+ def make_request(self):
289
+ service_url = self.service_url.get()
290
+ try:
291
+ response = requests.get(service_url)
292
+
293
+ response_json = json.loads(response.text)
294
+ status = response.status_code
295
+
296
+ self.option_manager.set_service_parameters(response_json)
297
+
298
+ self.service_status.delete('0.0', tk.END)
299
+ self.service_status.insert(text=str(status), index='0.0')
300
+ self.service_name.delete('0.0', tk.END)
301
+ self.service_name.insert(text=str(response_json["metainfo"]["name"]), index='0.0')
302
+ self.service_description.delete('0.0', tk.END)
303
+ self.service_description.insert(text=str(response_json["metainfo"]["description"]), index='0.0')
304
+ self.service_details.delete('0.0', tk.END)
305
+ self.service_details.insert(text=json.dumps(response_json, indent=4), index='0.0')
306
+
307
+ self.refresh_button.configure(fg_color="green")
308
+ except Exception as e:
309
+ self.refresh_button.configure(fg_color="red")
310
+
311
+
312
+ def load(self):
313
+ # Make HTTP request to service_url and save the result to bounds.json
314
+ self.refresh_button.configure(fg_color="gray")
315
+
316
+ self.after(10, self.make_request)
317
+ self.after(3000, lambda: self.refresh_button.configure(fg_color=None))
285
318
 
286
319
  def start():
287
320
  app = App()
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
  import codecs
3
3
  import os
4
4
 
5
- VERSION = '0.0.154'
5
+ VERSION = '0.0.155'
6
6
  DESCRIPTION = 'GUI for MG-PSO'
7
7
  LONG_DESCRIPTION = open('../README.md').read()
8
8
 
File without changes