mg-pso-gui 0.0.154__py3-none-any.whl → 0.0.155__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- {mg_pso_gui-0.0.154.dist-info → mg_pso_gui-0.0.155.dist-info}/METADATA +1 -1
- {mg_pso_gui-0.0.154.dist-info → mg_pso_gui-0.0.155.dist-info}/RECORD +6 -6
- mgpsogui/gui/HomePage.py +35 -2
- {mg_pso_gui-0.0.154.dist-info → mg_pso_gui-0.0.155.dist-info}/WHEEL +0 -0
- {mg_pso_gui-0.0.154.dist-info → mg_pso_gui-0.0.155.dist-info}/entry_points.txt +0 -0
- {mg_pso_gui-0.0.154.dist-info → mg_pso_gui-0.0.155.dist-info}/top_level.txt +0 -0
@@ -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=
|
4
|
+
mgpsogui/gui/HomePage.py,sha256=hPkDR7nTxkxkpCkBjbmC5-CvkacAxVBMXDThgLmcqAc,14424
|
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=N2HSRqT45NH4PPeOwXdLhOASMDjh-1OwUa2WmV47T5M,10465
|
@@ -32,8 +32,8 @@ mgpsogui/util/PSORunner.py,sha256=7iUYRUXgpZ0l0rqoyHQYY1Yg9q0gl9TE0jNaHZMv04c,29
|
|
32
32
|
mgpsogui/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
33
33
|
mgpsogui/util/CTkToolTip/__init__.py,sha256=G1jxV55hGtGgwyC1sR-uUUdasDdh0XZgcI-aILgGYA0,225
|
34
34
|
mgpsogui/util/CTkToolTip/ctk_tooltip.py,sha256=SZMovpQIGvdpDRbqCKl9SHs92DrFCO2MOYL2ifolvOE,6329
|
35
|
-
mg_pso_gui-0.0.
|
36
|
-
mg_pso_gui-0.0.
|
37
|
-
mg_pso_gui-0.0.
|
38
|
-
mg_pso_gui-0.0.
|
39
|
-
mg_pso_gui-0.0.
|
35
|
+
mg_pso_gui-0.0.155.dist-info/METADATA,sha256=oHZiodarYfvBUxCNi-CJ1Sct3eL4cD5O_N1W1DbDuOI,9459
|
36
|
+
mg_pso_gui-0.0.155.dist-info/WHEEL,sha256=Xo9-1PvkuimrydujYJAjF7pCkriuXBpUPEjma1nZyJ0,92
|
37
|
+
mg_pso_gui-0.0.155.dist-info/entry_points.txt,sha256=jg82VOFjR1XDGrchs1wJSCqKYE4Ozv12aBcCSp--koA,117
|
38
|
+
mg_pso_gui-0.0.155.dist-info/top_level.txt,sha256=y7JuS9xJN5YdxUsQ3PSVjN8MzQAnR146bP3ZN3PYWdE,9
|
39
|
+
mg_pso_gui-0.0.155.dist-info/RECORD,,
|
mgpsogui/gui/HomePage.py
CHANGED
@@ -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,
|
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="
|
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()
|
File without changes
|
File without changes
|
File without changes
|