mg-pso-gui 0.0.130__py3-none-any.whl → 0.0.132__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.130.dist-info → mg_pso_gui-0.0.132.dist-info}/METADATA +1 -1
- {mg_pso_gui-0.0.130.dist-info → mg_pso_gui-0.0.132.dist-info}/RECORD +7 -7
- mgpsogui/gui/HomePage.py +8 -8
- mgpsogui/gui/PlatformTab/PlatformTab.py +9 -9
- {mg_pso_gui-0.0.130.dist-info → mg_pso_gui-0.0.132.dist-info}/WHEEL +0 -0
- {mg_pso_gui-0.0.130.dist-info → mg_pso_gui-0.0.132.dist-info}/entry_points.txt +0 -0
- {mg_pso_gui-0.0.130.dist-info → mg_pso_gui-0.0.132.dist-info}/top_level.txt +0 -0
@@ -1,10 +1,10 @@
|
|
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=m6xnzalBA9iESJ0uoXyQENwQJOOzmBqKkJxllwSXsCk,25613
|
5
5
|
mgpsogui/gui/OptionManager.py,sha256=bFN2jWJbx1Din3waOFLmbWGt0BXD_KthGJ8Mgue_FEE,11712
|
6
6
|
mgpsogui/gui/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
7
|
-
mgpsogui/gui/PlatformTab/PlatformTab.py,sha256=
|
7
|
+
mgpsogui/gui/PlatformTab/PlatformTab.py,sha256=N2HSRqT45NH4PPeOwXdLhOASMDjh-1OwUa2WmV47T5M,10465
|
8
8
|
mgpsogui/gui/PlatformTab/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
9
9
|
mgpsogui/gui/SetupTab/BoundsEditorWindow.py,sha256=tDCap4qFQw3MRQo0d81W3vqmQlWQGNZYPh0TyhCwOvs,2848
|
10
10
|
mgpsogui/gui/SetupTab/BoundsList.py,sha256=goTmO8XJWFIl7QFtHFBUFtAwQel-FQFMfmGZnrqQLEc,12264
|
@@ -25,8 +25,8 @@ mgpsogui/util/PSORunner.py,sha256=7iUYRUXgpZ0l0rqoyHQYY1Yg9q0gl9TE0jNaHZMv04c,29
|
|
25
25
|
mgpsogui/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
26
26
|
mgpsogui/util/CTkToolTip/__init__.py,sha256=G1jxV55hGtGgwyC1sR-uUUdasDdh0XZgcI-aILgGYA0,225
|
27
27
|
mgpsogui/util/CTkToolTip/ctk_tooltip.py,sha256=SZMovpQIGvdpDRbqCKl9SHs92DrFCO2MOYL2ifolvOE,6329
|
28
|
-
mg_pso_gui-0.0.
|
29
|
-
mg_pso_gui-0.0.
|
30
|
-
mg_pso_gui-0.0.
|
31
|
-
mg_pso_gui-0.0.
|
32
|
-
mg_pso_gui-0.0.
|
28
|
+
mg_pso_gui-0.0.132.dist-info/METADATA,sha256=KI9pJZXXrsfKsZkUD7TGbB4qVDpN3GyuJPigXfgfsYE,9459
|
29
|
+
mg_pso_gui-0.0.132.dist-info/WHEEL,sha256=Xo9-1PvkuimrydujYJAjF7pCkriuXBpUPEjma1nZyJ0,92
|
30
|
+
mg_pso_gui-0.0.132.dist-info/entry_points.txt,sha256=jg82VOFjR1XDGrchs1wJSCqKYE4Ozv12aBcCSp--koA,117
|
31
|
+
mg_pso_gui-0.0.132.dist-info/top_level.txt,sha256=y7JuS9xJN5YdxUsQ3PSVjN8MzQAnR146bP3ZN3PYWdE,9
|
32
|
+
mg_pso_gui-0.0.132.dist-info/RECORD,,
|
mgpsogui/gui/HomePage.py
CHANGED
@@ -73,27 +73,27 @@ class App(customtkinter.CTk):
|
|
73
73
|
|
74
74
|
# create sidebar frame with widgets
|
75
75
|
self.sidebar_frame = customtkinter.CTkFrame(self, width=140, corner_radius=0)
|
76
|
-
self.sidebar_frame.grid(row=0, column=0,
|
77
|
-
self.sidebar_frame.
|
76
|
+
self.sidebar_frame.grid(row=0, column=0, columnspan=4, sticky="nsew")
|
77
|
+
self.sidebar_frame.grid_columnconfigure(4, weight=1)
|
78
78
|
self.logo_label = customtkinter.CTkLabel(self.sidebar_frame, text="CSIP PSO", font=customtkinter.CTkFont(size=20, weight="bold"))
|
79
79
|
self.logo_label.grid(row=0, column=0, padx=20, pady=(20, 20))
|
80
80
|
self.save_button = customtkinter.CTkButton(self.sidebar_frame, text="Save", command=self.save_project)
|
81
|
-
self.save_button.grid(row=
|
81
|
+
self.save_button.grid(row=0, column=1, padx=20, pady=(10, 10))
|
82
82
|
self.load_button = customtkinter.CTkButton(self.sidebar_frame, text="Load", command=self.load_project)
|
83
|
-
self.load_button.grid(row=
|
83
|
+
self.load_button.grid(row=0, column=1, padx=20, pady=(10, 10))
|
84
84
|
|
85
85
|
self.new_window = customtkinter.CTkButton(self.sidebar_frame, text="New Window", command=self.new_window)
|
86
|
-
self.new_window.grid(row=
|
86
|
+
self.new_window.grid(row=0, column=6, padx=20, pady=(10, 10))
|
87
87
|
|
88
88
|
self.scaling_label = customtkinter.CTkLabel(self.sidebar_frame, text="Scale:", anchor="w")
|
89
|
-
self.scaling_label.grid(row=
|
89
|
+
self.scaling_label.grid(row=0, column=7, padx=20, pady=(10, 0))
|
90
90
|
self.scaling_optionemenu = customtkinter.CTkOptionMenu(self.sidebar_frame, values=["50%", "75%", "100%", "150%", "200%"],
|
91
91
|
command=self.change_scaling_event)
|
92
|
-
self.scaling_optionemenu.grid(row=
|
92
|
+
self.scaling_optionemenu.grid(row=0, column=8, padx=20, pady=(10, 20))
|
93
93
|
self.scaling_optionemenu.set("100%")
|
94
94
|
|
95
95
|
self.tabview = customtkinter.CTkTabview(self)
|
96
|
-
self.tabview.grid(row=
|
96
|
+
self.tabview.grid(row=1, column=0, columnspan=2, rowspan=2, padx=(20, 20), pady=(20, 20), sticky="nsew")
|
97
97
|
tab1 = "Platform"
|
98
98
|
tab2 = "Setup"
|
99
99
|
tab3 = "Run"
|
@@ -9,7 +9,7 @@ import tkinter as tk
|
|
9
9
|
|
10
10
|
def create_tab(self, tab):
|
11
11
|
|
12
|
-
def make_request(
|
12
|
+
def make_request():
|
13
13
|
service_url = self.service_url.get()
|
14
14
|
response = requests.get(service_url)
|
15
15
|
|
@@ -30,13 +30,13 @@ def create_tab(self, tab):
|
|
30
30
|
|
31
31
|
self.load_parameters.configure(text="Loaded!")
|
32
32
|
|
33
|
-
def load(
|
33
|
+
def load():
|
34
34
|
# Make HTTP request to service_url and save the result to bounds.json
|
35
35
|
self.load_parameters.configure(text="Loading...")
|
36
|
-
self.after(10,
|
36
|
+
self.after(10, make_request)
|
37
37
|
self.after(3000, lambda: self.load_parameters.configure(text="Connect"))
|
38
38
|
|
39
|
-
def start_cluster(
|
39
|
+
def start_cluster():
|
40
40
|
process = subprocess.Popen(["minikube", "start"], stdout=subprocess.PIPE)
|
41
41
|
output, error = process.communicate()
|
42
42
|
if error:
|
@@ -55,7 +55,7 @@ def create_tab(self, tab):
|
|
55
55
|
print(f"Output: {output}")
|
56
56
|
self.custer_details.insert("0.0", output.decode('unicode-escape') + "\n\n")
|
57
57
|
|
58
|
-
def cluster_status(
|
58
|
+
def cluster_status():
|
59
59
|
process = subprocess.Popen(["minikube", "status"], stdout=subprocess.PIPE)
|
60
60
|
output, error = process.communicate()
|
61
61
|
if error:
|
@@ -66,7 +66,7 @@ def create_tab(self, tab):
|
|
66
66
|
self.custer_details.insert("0.0", output.decode('unicode-escape') + "\n\n")
|
67
67
|
|
68
68
|
|
69
|
-
def open_terminal_and_run_cluster(
|
69
|
+
def open_terminal_and_run_cluster():
|
70
70
|
full_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'start.yaml'))
|
71
71
|
command = "minikube kubectl -- create -f " + full_path + " ; sleep 60 ; minikube service pf8087-csu-csip-oms -n csip"
|
72
72
|
#command = "minikube kubectl -- create -f " + full_path + " ; until [[ $(minikube kubectl -- get pods -l app=pf8087-csu-csip-oms -n csip -o \\'jsonpath={..status.conditions[?(@.type==\\\"Ready\\\")].status}\\') == \\\"True\\\" ]]; do echo \\\"waiting for pod\\\" && sleep 1; done ; minikube service pf8087-csu-csip-oms -n csip"
|
@@ -80,7 +80,7 @@ def create_tab(self, tab):
|
|
80
80
|
# Change the service URL to /csip-oms/m/ages/0.3.0
|
81
81
|
self.service_url.cget("textvariable").set("PASTE_URL/csip-oms/m/ages/0.3.0")
|
82
82
|
|
83
|
-
def deploy_cluster(
|
83
|
+
def deploy_cluster():
|
84
84
|
full_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'start.yaml'))
|
85
85
|
command = "minikube kubectl -- create -f " + full_path + " ; sleep 60 ; minikube service pf8087-csu-csip-oms -n csip"
|
86
86
|
|
@@ -101,7 +101,7 @@ def create_tab(self, tab):
|
|
101
101
|
# Change the service URL to /csip-oms/m/ages/0.3.0
|
102
102
|
self.service_url.cget("textvariable").set("PASTE_URL/csip-oms/m/ages/0.3.0")
|
103
103
|
|
104
|
-
def stop_cluster(
|
104
|
+
def stop_cluster():
|
105
105
|
process = subprocess.Popen(["minikube", "delete"], stdout=subprocess.PIPE)
|
106
106
|
output, error = process.communicate()
|
107
107
|
if error:
|
@@ -126,7 +126,7 @@ def create_tab(self, tab):
|
|
126
126
|
self.service_url = customtkinter.CTkEntry(self.top_bar_container, textvariable=self.option_manager.get_arguments()['url'])
|
127
127
|
self.service_url.grid(row=0, column=1, columnspan=1, padx=(20, 20), pady=(20, 20), sticky="nsew")
|
128
128
|
|
129
|
-
self.load_parameters = customtkinter.CTkButton(self.top_bar_container, text="Connect", command=
|
129
|
+
self.load_parameters = customtkinter.CTkButton(self.top_bar_container, text="Connect", command=load)
|
130
130
|
self.load_parameters.grid(row=0, column=2, padx=(20, 20), pady=(20, 20), sticky="nsew")
|
131
131
|
|
132
132
|
self.service_editor = customtkinter.CTkScrollableFrame(tab, label_text="Service Editor")
|
File without changes
|
File without changes
|
File without changes
|