mg-pso-gui 0.0.147__tar.gz → 0.0.149__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. {mg-pso-gui-0.0.147 → mg-pso-gui-0.0.149}/PKG-INFO +1 -1
  2. {mg-pso-gui-0.0.147 → mg-pso-gui-0.0.149}/mg_pso_gui.egg-info/PKG-INFO +1 -1
  3. {mg-pso-gui-0.0.147 → mg-pso-gui-0.0.149}/mgpsogui/gui/HomePage.py +9 -1
  4. {mg-pso-gui-0.0.147 → mg-pso-gui-0.0.149}/mgpsogui/gui/RunTab/RunTab.py +16 -0
  5. {mg-pso-gui-0.0.147 → mg-pso-gui-0.0.149}/mgpsogui/gui/VisualizeTab/VisualizeTab.py +2 -2
  6. {mg-pso-gui-0.0.147 → mg-pso-gui-0.0.149}/setup.py +1 -1
  7. {mg-pso-gui-0.0.147 → mg-pso-gui-0.0.149}/mg_pso_gui.egg-info/SOURCES.txt +0 -0
  8. {mg-pso-gui-0.0.147 → mg-pso-gui-0.0.149}/mg_pso_gui.egg-info/dependency_links.txt +0 -0
  9. {mg-pso-gui-0.0.147 → mg-pso-gui-0.0.149}/mg_pso_gui.egg-info/entry_points.txt +0 -0
  10. {mg-pso-gui-0.0.147 → mg-pso-gui-0.0.149}/mg_pso_gui.egg-info/requires.txt +0 -0
  11. {mg-pso-gui-0.0.147 → mg-pso-gui-0.0.149}/mg_pso_gui.egg-info/top_level.txt +0 -0
  12. {mg-pso-gui-0.0.147 → mg-pso-gui-0.0.149}/mgpsogui/__init__.py +0 -0
  13. {mg-pso-gui-0.0.147 → mg-pso-gui-0.0.149}/mgpsogui/gui/OptionManager.py +0 -0
  14. {mg-pso-gui-0.0.147 → mg-pso-gui-0.0.149}/mgpsogui/gui/PlatformTab/PlatformTab.py +0 -0
  15. {mg-pso-gui-0.0.147 → mg-pso-gui-0.0.149}/mgpsogui/gui/PlatformTab/__init__.py +0 -0
  16. {mg-pso-gui-0.0.147 → mg-pso-gui-0.0.149}/mgpsogui/gui/RunTab/__init__.py +0 -0
  17. {mg-pso-gui-0.0.147 → mg-pso-gui-0.0.149}/mgpsogui/gui/SetupTab/BoundsEditorWindow.py +0 -0
  18. {mg-pso-gui-0.0.147 → mg-pso-gui-0.0.149}/mgpsogui/gui/SetupTab/BoundsList.py +0 -0
  19. {mg-pso-gui-0.0.147 → mg-pso-gui-0.0.149}/mgpsogui/gui/SetupTab/CalibrationParametersView.py +0 -0
  20. {mg-pso-gui-0.0.147 → mg-pso-gui-0.0.149}/mgpsogui/gui/SetupTab/FunctionsList.py +0 -0
  21. {mg-pso-gui-0.0.147 → mg-pso-gui-0.0.149}/mgpsogui/gui/SetupTab/ListParametersView.py +0 -0
  22. {mg-pso-gui-0.0.147 → mg-pso-gui-0.0.149}/mgpsogui/gui/SetupTab/SetupTab.py +0 -0
  23. {mg-pso-gui-0.0.147 → mg-pso-gui-0.0.149}/mgpsogui/gui/SetupTab/StaticParameterView.py +0 -0
  24. {mg-pso-gui-0.0.147 → mg-pso-gui-0.0.149}/mgpsogui/gui/SetupTab/StepView.py +0 -0
  25. {mg-pso-gui-0.0.147 → mg-pso-gui-0.0.149}/mgpsogui/gui/SetupTab/__init__.py +0 -0
  26. {mg-pso-gui-0.0.147 → mg-pso-gui-0.0.149}/mgpsogui/gui/VisualizeTab/__init__.py +0 -0
  27. {mg-pso-gui-0.0.147 → mg-pso-gui-0.0.149}/mgpsogui/gui/__init__.py +0 -0
  28. {mg-pso-gui-0.0.147 → mg-pso-gui-0.0.149}/mgpsogui/gui/images/collapse.png +0 -0
  29. {mg-pso-gui-0.0.147 → mg-pso-gui-0.0.149}/mgpsogui/gui/images/down.png +0 -0
  30. {mg-pso-gui-0.0.147 → mg-pso-gui-0.0.149}/mgpsogui/gui/images/expand.png +0 -0
  31. {mg-pso-gui-0.0.147 → mg-pso-gui-0.0.149}/mgpsogui/gui/images/trash.png +0 -0
  32. {mg-pso-gui-0.0.147 → mg-pso-gui-0.0.149}/mgpsogui/gui/images/up.png +0 -0
  33. {mg-pso-gui-0.0.147 → mg-pso-gui-0.0.149}/mgpsogui/mgpsogui.py +0 -0
  34. {mg-pso-gui-0.0.147 → mg-pso-gui-0.0.149}/mgpsogui/start.yaml +0 -0
  35. {mg-pso-gui-0.0.147 → mg-pso-gui-0.0.149}/mgpsogui/util/CTkToolTip/__init__.py +0 -0
  36. {mg-pso-gui-0.0.147 → mg-pso-gui-0.0.149}/mgpsogui/util/CTkToolTip/ctk_tooltip.py +0 -0
  37. {mg-pso-gui-0.0.147 → mg-pso-gui-0.0.149}/mgpsogui/util/GraphGenerator.py +0 -0
  38. {mg-pso-gui-0.0.147 → mg-pso-gui-0.0.149}/mgpsogui/util/PSORunner.py +0 -0
  39. {mg-pso-gui-0.0.147 → mg-pso-gui-0.0.149}/mgpsogui/util/__init__.py +0 -0
  40. {mg-pso-gui-0.0.147 → mg-pso-gui-0.0.149}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mg-pso-gui
3
- Version: 0.0.147
3
+ Version: 0.0.149
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.147
3
+ Version: 0.0.149
4
4
  Summary: GUI for MG-PSO
5
5
  Author: Robert Cordingly
6
6
  Author-email: <rcording@uw.ed>
@@ -102,7 +102,7 @@ class App(customtkinter.CTk):
102
102
 
103
103
  expand_image = customtkinter.CTkImage(Image.open(os.path.join("./images", "expand.png")), size=(20, 20))
104
104
  self.new_window = customtkinter.CTkButton(self.sidebar_frame, text=None, width=30, image=expand_image, command=self.new_window)
105
- self.new_window.grid(row=0, column=8, padx=header_padding_x, pady=header_padding_y)
105
+ self.new_window.grid(row=0, column=8, padx=(5, 20), pady=header_padding_y)
106
106
 
107
107
  self.tabview = customtkinter.CTkTabview(self)
108
108
  self.tabview.grid(row=1, column=0, padx=(60, 60), pady=(10, 10), sticky="nsew")
@@ -124,6 +124,14 @@ class App(customtkinter.CTk):
124
124
  st.create_tab(self, self.tabview.tab(tab2))
125
125
  rt.create_tab(self, self.tabview.tab(tab3))
126
126
  vt.create_tab(self, self.tabview.tab(tab4))
127
+
128
+ self.footer_frame = customtkinter.CTkFrame(self, corner_radius=0)
129
+ self.footer_frame.grid(row=2, column=0, sticky="nsew")
130
+ self.footer_frame.grid_columnconfigure(4, weight=1)
131
+
132
+ self.footer_progress_bar = customtkinter.CTkProgressBar(self.footer_frame)
133
+ self.footer_progress_bar.grid(row=0, column=4, padx=(100, 100), pady=header_padding_y, sticky="ew")
134
+ self.footer_progress_bar.set(0)
127
135
 
128
136
  def _resize_image(self, event):
129
137
  self.graph_label.update_idletasks()
@@ -21,6 +21,8 @@ def create_tab(self, tab):
21
21
 
22
22
  self.progress_bar.configure(mode="indeterminnate")
23
23
  self.progress_bar.start()
24
+ self.footer_progress_bar.configure(mode="indeterminnate")
25
+ self.footer_progress_bar.start()
24
26
 
25
27
  self.data_x = [0]
26
28
  self.data_y = [0]
@@ -52,8 +54,11 @@ def create_tab(self, tab):
52
54
  self.progress_message_middle.configure(text="Calibration failed! See error log below.")
53
55
  self.progress_message_right.configure(text="")
54
56
  self.progress_bar.stop()
57
+ self.footer_progress_bar.stop()
55
58
  self.progress_bar.configure(mode="determinate")
59
+ self.footer_progress_bar.configure(mode="determinate")
56
60
  self.progress_bar.set(0)
61
+ self.footer_progress_bar.set(0)
57
62
 
58
63
  def stop():
59
64
  print("Stopping...")
@@ -74,8 +79,11 @@ def create_tab(self, tab):
74
79
 
75
80
  self.textbox.insert("0.0", "\nCalibration terminated!\n")
76
81
  self.progress_bar.stop()
82
+ self.footer_progress_bar.stop()
77
83
  self.progress_bar.configure(mode="determinate")
84
+ self.footer_progress_bar.configure(mode="determinate")
78
85
  self.progress_bar.set(0)
86
+ self.footer_progress_bar.set(0)
79
87
  self.progress_message_left.configure(text="")
80
88
  self.progress_message_middle.configure(text="Calibration stopped!")
81
89
  self.progress_message_right.configure(text="")
@@ -165,14 +173,19 @@ def create_tab(self, tab):
165
173
 
166
174
  if (percent > 0):
167
175
  self.progress_bar.stop()
176
+ self.footer_progress_bar.stop()
168
177
  self.progress_bar.configure(mode="determinate")
178
+ self.footer_progress_bar.configure(mode="determinate")
169
179
  self.progress_bar.set(percent/100)
180
+ self.footer_progress_bar.set(percent/100)
170
181
  self.progress_message_left.configure(text="Percent Complete: " + str(percent) + "%")
171
182
  self.progress_message_middle.configure(text=str(completed_rounds) + "/" + str(total_rounds))
172
183
  self.progress_message_right.configure(text="Best Cost: " + str(best_cost))
173
184
  else:
174
185
  self.progress_bar.configure(mode="indeterminate")
186
+ self.footer_progress_bar.configure(mode="indeterminate")
175
187
  self.progress_bar.start()
188
+ self.footer_progress_bar.start()
176
189
  self.progress_message_left.configure(text="")
177
190
  self.progress_message_middle.configure(text="Starting new round...")
178
191
  self.progress_message_right.configure(text="")
@@ -183,8 +196,11 @@ def create_tab(self, tab):
183
196
  self.after(1000, watch_loop)
184
197
  else:
185
198
  self.progress_bar.stop()
199
+ self.footer_progress_bar.stop()
186
200
  self.progress_bar.configure(mode="indeterminate")
201
+ self.footer_progress_bar.configure(mode="indeterminate")
187
202
  self.progress_bar.start()
203
+ self.footer_progress_bar.start()
188
204
  self.progress_message_left.configure(text="")
189
205
  self.progress_message_middle.configure(text="Calibration finished!")
190
206
  self.progress_message_right.configure(text="")
@@ -7,7 +7,7 @@ import subprocess
7
7
 
8
8
  def create_tab(self, tab):
9
9
 
10
- def open_graph_in_browser(self):
10
+ def open_graph_in_browser():
11
11
  # Open the file in the default program
12
12
  info = self.option_manager.get_project_data()
13
13
  folder = os.path.join(info['path'], info['name'])
@@ -24,7 +24,7 @@ def create_tab(self, tab):
24
24
  else:
25
25
  subprocess.Popen(["xdg-open", file_path])
26
26
 
27
- def _resize_image(self, event):
27
+ def _resize_image(event):
28
28
  self.graph_label.update_idletasks()
29
29
  new_width = self.graph_label.winfo_width()
30
30
  new_height = self.graph_label.winfo_height()
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
  import codecs
3
3
  import os
4
4
 
5
- VERSION = '0.0.147'
5
+ VERSION = '0.0.149'
6
6
  DESCRIPTION = 'GUI for MG-PSO'
7
7
  LONG_DESCRIPTION = open('../README.md').read()
8
8
 
File without changes