mg-pso-gui 0.0.130__tar.gz → 0.0.132__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. {mg-pso-gui-0.0.130 → mg-pso-gui-0.0.132}/PKG-INFO +1 -1
  2. {mg-pso-gui-0.0.130 → mg-pso-gui-0.0.132}/mg_pso_gui.egg-info/PKG-INFO +1 -1
  3. {mg-pso-gui-0.0.130 → mg-pso-gui-0.0.132}/mgpsogui/gui/HomePage.py +8 -8
  4. {mg-pso-gui-0.0.130 → mg-pso-gui-0.0.132}/mgpsogui/gui/PlatformTab/PlatformTab.py +9 -9
  5. {mg-pso-gui-0.0.130 → mg-pso-gui-0.0.132}/setup.py +1 -1
  6. {mg-pso-gui-0.0.130 → mg-pso-gui-0.0.132}/mg_pso_gui.egg-info/SOURCES.txt +0 -0
  7. {mg-pso-gui-0.0.130 → mg-pso-gui-0.0.132}/mg_pso_gui.egg-info/dependency_links.txt +0 -0
  8. {mg-pso-gui-0.0.130 → mg-pso-gui-0.0.132}/mg_pso_gui.egg-info/entry_points.txt +0 -0
  9. {mg-pso-gui-0.0.130 → mg-pso-gui-0.0.132}/mg_pso_gui.egg-info/requires.txt +0 -0
  10. {mg-pso-gui-0.0.130 → mg-pso-gui-0.0.132}/mg_pso_gui.egg-info/top_level.txt +0 -0
  11. {mg-pso-gui-0.0.130 → mg-pso-gui-0.0.132}/mgpsogui/__init__.py +0 -0
  12. {mg-pso-gui-0.0.130 → mg-pso-gui-0.0.132}/mgpsogui/gui/OptionManager.py +0 -0
  13. {mg-pso-gui-0.0.130 → mg-pso-gui-0.0.132}/mgpsogui/gui/PlatformTab/__init__.py +0 -0
  14. {mg-pso-gui-0.0.130 → mg-pso-gui-0.0.132}/mgpsogui/gui/SetupTab/BoundsEditorWindow.py +0 -0
  15. {mg-pso-gui-0.0.130 → mg-pso-gui-0.0.132}/mgpsogui/gui/SetupTab/BoundsList.py +0 -0
  16. {mg-pso-gui-0.0.130 → mg-pso-gui-0.0.132}/mgpsogui/gui/SetupTab/CalibrationParametersView.py +0 -0
  17. {mg-pso-gui-0.0.130 → mg-pso-gui-0.0.132}/mgpsogui/gui/SetupTab/FunctionsList.py +0 -0
  18. {mg-pso-gui-0.0.130 → mg-pso-gui-0.0.132}/mgpsogui/gui/SetupTab/ListParametersView.py +0 -0
  19. {mg-pso-gui-0.0.130 → mg-pso-gui-0.0.132}/mgpsogui/gui/SetupTab/SetupTab.py +0 -0
  20. {mg-pso-gui-0.0.130 → mg-pso-gui-0.0.132}/mgpsogui/gui/SetupTab/StaticParameterView.py +0 -0
  21. {mg-pso-gui-0.0.130 → mg-pso-gui-0.0.132}/mgpsogui/gui/SetupTab/StepView.py +0 -0
  22. {mg-pso-gui-0.0.130 → mg-pso-gui-0.0.132}/mgpsogui/gui/SetupTab/__init__.py +0 -0
  23. {mg-pso-gui-0.0.130 → mg-pso-gui-0.0.132}/mgpsogui/gui/__init__.py +0 -0
  24. {mg-pso-gui-0.0.130 → mg-pso-gui-0.0.132}/mgpsogui/gui/images/collapse.png +0 -0
  25. {mg-pso-gui-0.0.130 → mg-pso-gui-0.0.132}/mgpsogui/gui/images/down.png +0 -0
  26. {mg-pso-gui-0.0.130 → mg-pso-gui-0.0.132}/mgpsogui/gui/images/expand.png +0 -0
  27. {mg-pso-gui-0.0.130 → mg-pso-gui-0.0.132}/mgpsogui/gui/images/trash.png +0 -0
  28. {mg-pso-gui-0.0.130 → mg-pso-gui-0.0.132}/mgpsogui/gui/images/up.png +0 -0
  29. {mg-pso-gui-0.0.130 → mg-pso-gui-0.0.132}/mgpsogui/mgpsogui.py +0 -0
  30. {mg-pso-gui-0.0.130 → mg-pso-gui-0.0.132}/mgpsogui/start.yaml +0 -0
  31. {mg-pso-gui-0.0.130 → mg-pso-gui-0.0.132}/mgpsogui/util/CTkToolTip/__init__.py +0 -0
  32. {mg-pso-gui-0.0.130 → mg-pso-gui-0.0.132}/mgpsogui/util/CTkToolTip/ctk_tooltip.py +0 -0
  33. {mg-pso-gui-0.0.130 → mg-pso-gui-0.0.132}/mgpsogui/util/GraphGenerator.py +0 -0
  34. {mg-pso-gui-0.0.130 → mg-pso-gui-0.0.132}/mgpsogui/util/PSORunner.py +0 -0
  35. {mg-pso-gui-0.0.130 → mg-pso-gui-0.0.132}/mgpsogui/util/__init__.py +0 -0
  36. {mg-pso-gui-0.0.130 → mg-pso-gui-0.0.132}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mg-pso-gui
3
- Version: 0.0.130
3
+ Version: 0.0.132
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.130
3
+ Version: 0.0.132
4
4
  Summary: GUI for MG-PSO
5
5
  Author: Robert Cordingly
6
6
  Author-email: <rcording@uw.ed>
@@ -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, rowspan=4, sticky="nsew")
77
- self.sidebar_frame.grid_rowconfigure(4, weight=1)
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=1, column=0, padx=20, pady=(10, 10))
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=2, column=0, padx=20, pady=(10, 10))
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=6, column=0, padx=20, pady=(10, 10))
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=7, column=0, padx=20, pady=(10, 0))
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=8, column=0, padx=20, pady=(10, 20))
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=0, column=1, columnspan=2, rowspan=2, padx=(20, 20), pady=(20, 20), sticky="nsew")
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(self):
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(self):
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, self.make_request)
36
+ self.after(10, make_request)
37
37
  self.after(3000, lambda: self.load_parameters.configure(text="Connect"))
38
38
 
39
- def start_cluster(self):
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(self):
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(self):
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(self):
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(self):
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=self.load)
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")
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
  import codecs
3
3
  import os
4
4
 
5
- VERSION = '0.0.130'
5
+ VERSION = '0.0.132'
6
6
  DESCRIPTION = 'GUI for MG-PSO'
7
7
  LONG_DESCRIPTION = open('../README.md').read()
8
8
 
File without changes