mg-pso-gui 0.2.119__py3-none-any.whl → 0.2.120__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mg-pso-gui
3
- Version: 0.2.119
3
+ Version: 0.2.120
4
4
  Summary: GUI for MG-PSO
5
5
  Author: Robert Cordingly
6
6
  Author-email: <rcording@uw.ed>
@@ -1,11 +1,11 @@
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=NiddhmNT9VXPl9s5ksFOkC6RHmTf5qQErQNeUuqJ9L8,25158
4
+ mgpsogui/gui/HomePage.py,sha256=PNPEivddGoREixpK3dPPS0dp2cFJ2oBDt87QO565h7U,25118
5
5
  mgpsogui/gui/OptionManager.py,sha256=t0aXOeBo48qQ-P8OykpP2v_3KJoaJtUPSkYtacjloCc,22844
6
6
  mgpsogui/gui/OptionManager_backup.py,sha256=TCWfPnHL2foN5id47jsi267lamRG6yGU6y_M29eOOJk,18530
7
7
  mgpsogui/gui/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
- mgpsogui/gui/General/NoticeWindow.py,sha256=bD5M5TXd4vaWwYw6nL0sGL072wqFTBdNTNtpwDuUyeY,1949
8
+ mgpsogui/gui/General/NoticeWindow.py,sha256=uPOXXBhofvcPbaC8-VYyqy2_AtY_8-lcg5O6Rua_jcA,2466
9
9
  mgpsogui/gui/General/ParameterView.py,sha256=H7BqT1UiEYpGp8d6ycdKaKtuqY5IkrlHOXiiN_pgcMM,10059
10
10
  mgpsogui/gui/General/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
11
  mgpsogui/gui/PlatformTab/PlatformTab.py,sha256=8J2Aa3Zrh1q9x07zZ0Ap9PgwHjeSKOYyj6wlxx40udw,10985
@@ -13,17 +13,17 @@ mgpsogui/gui/PlatformTab/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
13
13
  mgpsogui/gui/RunTab/OptimalParameterView.py,sha256=nliUEWA840cPBQt7wjiZ-L7uBOp_ozzJhyBkL08fJzI,1752
14
14
  mgpsogui/gui/RunTab/RunTab.py,sha256=_JWzDx5LT_uISw0Vnv-W2ypIeuKgoWqBnvFnvrLhNQA,5917
15
15
  mgpsogui/gui/RunTab/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
- mgpsogui/gui/SetupTab/BoundsEditorWindow.py,sha256=U64oaiDIOaimjbqKMz5rQNq2o1SrQtrRHDdTYQ9ux1s,2870
16
+ mgpsogui/gui/SetupTab/BoundsEditorWindow.py,sha256=7Vic6AkBI2FStMlYyPH0-dNJJyqEckYJpwxknAqtp84,3403
17
17
  mgpsogui/gui/SetupTab/BoundsList.py,sha256=UHXVpofV1201udOsz_jCva-XktFVLBvlkeeR-eOQhUY,15515
18
- mgpsogui/gui/SetupTab/CustomFunctionEditorWindow.py,sha256=yx0dHSNa7fGy99Q6qFcI6j9r8p0DlV3iOBgyPMGd8pM,2884
18
+ mgpsogui/gui/SetupTab/CustomFunctionEditorWindow.py,sha256=lZ9a20YucwhCDiUN3eGA6WXQK7laToB7FP4Zev4Zxnc,3417
19
19
  mgpsogui/gui/SetupTab/CustomFunctionMetrics.py,sha256=vOJpElbTgz043m6JYwe9xz_2MBHg985S6KdbJkJERW4,5923
20
20
  mgpsogui/gui/SetupTab/FunctionsList.py,sha256=6oFS8qKF3OCtxNi5aY5Rj_ovM9nv4-vh-oT_CbhVTj4,7043
21
21
  mgpsogui/gui/SetupTab/ListEditor.py,sha256=nin7Pl8z7d_yfKoAxM-yVS34uhj-LnprJ2mNRSB7Z0A,3197
22
22
  mgpsogui/gui/SetupTab/ListParametersView.py,sha256=mkGaC5cXhEOy5oD0MbTyK9z7VGZp019oK2Y8Ay-n05Q,7460
23
23
  mgpsogui/gui/SetupTab/OverrideParameterMetrics.py,sha256=rBfaSitYDOajbHvyi2TfoXAHYlz1cCt028UVpIJ_Dc0,3369
24
- mgpsogui/gui/SetupTab/OverrideParameterWindow.py,sha256=UpZDxTaFxee0BeviUYXeiIlMNYNy00qz3zlMlM5VcXE,1291
24
+ mgpsogui/gui/SetupTab/OverrideParameterWindow.py,sha256=1UJHel0BH4sYa5WQnuSaFd3cdpRwAIwOpFIbhDS30IY,1824
25
25
  mgpsogui/gui/SetupTab/SamplingListView.py,sha256=DhZBAhDcrqZn1XioCs1gTe_v-8W10C0UfPm0fLAbeXM,5260
26
- mgpsogui/gui/SetupTab/SamplingNameListWindow.py,sha256=QzVu8mSpFGy3mUlLonk94k5thDNdJzw2d3qmEq89RAQ,2866
26
+ mgpsogui/gui/SetupTab/SamplingNameListWindow.py,sha256=XX9PPYZfhCnj7j-ZO8n1cGY-ANwEuw1ZjL0yeU18kgA,3399
27
27
  mgpsogui/gui/SetupTab/SetupTab.py,sha256=3V8LYvg5ulTll1hhguB_XpSoOR-w72vHh_Z3gw3nCxc,2758
28
28
  mgpsogui/gui/SetupTab/StepView.py,sha256=zogpFpGPRHrVZTADGGl6D5gHj0rfUmlTIJBxA50stbg,10399
29
29
  mgpsogui/gui/SetupTab/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -73,8 +73,8 @@ mgpsogui/util/recosu/utils/trace_writer.py,sha256=V9BJlOjCbNYGoXGEk3CF5wjifBxvar
73
73
  mgpsogui/util/recosu/utils/utils.py,sha256=QB8vftq3142ekG0ORjz0ZBHU5YknXbR0oTsrxrPAsF0,3951
74
74
  mgpsogui/util/recosu/utils/plot/__init__.py,sha256=h1KjM7_tNDv351pcwt8A6Ibb1jhwWyx5Gbu-zj-sI3Q,71
75
75
  mgpsogui/util/recosu/utils/plot/cost_steps.py,sha256=1Ce11AJyweWkmvjXPxEygzS-h8yVLmQEDLS53yjPLqQ,3779
76
- mg_pso_gui-0.2.119.dist-info/METADATA,sha256=iOIGUO0VDSt_trIKV4koEjhF56lr__R2IMXuwNT4qXc,9542
77
- mg_pso_gui-0.2.119.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
78
- mg_pso_gui-0.2.119.dist-info/entry_points.txt,sha256=jg82VOFjR1XDGrchs1wJSCqKYE4Ozv12aBcCSp--koA,117
79
- mg_pso_gui-0.2.119.dist-info/top_level.txt,sha256=y7JuS9xJN5YdxUsQ3PSVjN8MzQAnR146bP3ZN3PYWdE,9
80
- mg_pso_gui-0.2.119.dist-info/RECORD,,
76
+ mg_pso_gui-0.2.120.dist-info/METADATA,sha256=7s4hDXPFox3DshdWpM8JzIRhbBcM-76tA7db07gs2C0,9542
77
+ mg_pso_gui-0.2.120.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
78
+ mg_pso_gui-0.2.120.dist-info/entry_points.txt,sha256=jg82VOFjR1XDGrchs1wJSCqKYE4Ozv12aBcCSp--koA,117
79
+ mg_pso_gui-0.2.120.dist-info/top_level.txt,sha256=y7JuS9xJN5YdxUsQ3PSVjN8MzQAnR146bP3ZN3PYWdE,9
80
+ mg_pso_gui-0.2.120.dist-info/RECORD,,
@@ -20,7 +20,21 @@ class NoticeWindow(CTkInputDialog):
20
20
  **kwargs):
21
21
  super().__init__(*args, **kwargs)
22
22
 
23
- self.geometry(str(x) + "x" + str(y))
23
+ screen_width = self.winfo_screenwidth()
24
+ screen_height = self.winfo_screenheight()
25
+ win_width = x
26
+ win_height = y
27
+ if screen_width < win_width:
28
+ win_width = screen_width * 0.9
29
+
30
+ if screen_height < win_height:
31
+ win_height = screen_height * 0.9
32
+
33
+ # Calculate the x and y coordinates to center the window
34
+ x_coord = (screen_width // 2) - (win_width // 2)
35
+ y_coord = (screen_height // 2) - (win_height // 2)
36
+
37
+ self.geometry(f"{win_width}x{win_height}+{x_coord}+{y_coord}")
24
38
 
25
39
  self.message = message
26
40
 
mgpsogui/gui/HomePage.py CHANGED
@@ -130,9 +130,6 @@ class App(customtkinter.CTk):
130
130
 
131
131
  self.geometry(f"{win_width}x{win_height}+{x_coord}+{y_coord}")
132
132
 
133
- # Center the Window on the screen
134
-
135
-
136
133
  # configure grid layout (4x4)
137
134
  self.grid_columnconfigure(0, weight=1)
138
135
  self.grid_rowconfigure(1, weight=1)
@@ -19,7 +19,21 @@ class BoundsEditorWindow(CTkInputDialog):
19
19
  **kwargs):
20
20
  super().__init__(*args, **kwargs)
21
21
 
22
- self.geometry("400x800")
22
+ screen_width = self.winfo_screenwidth()
23
+ screen_height = self.winfo_screenheight()
24
+ win_width = 400
25
+ win_height = 800
26
+ if screen_width < win_width:
27
+ win_width = screen_width * 0.9
28
+
29
+ if screen_height < win_height:
30
+ win_height = screen_height * 0.9
31
+
32
+ # Calculate the x and y coordinates to center the window
33
+ x_coord = (screen_width // 2) - (win_width // 2)
34
+ y_coord = (screen_height // 2) - (win_height // 2)
35
+
36
+ self.geometry(f"{win_width}x{win_height}+{x_coord}+{y_coord}")
23
37
 
24
38
  self.step_index = step_index
25
39
  self.bound_index = bound_index
@@ -19,7 +19,21 @@ class CustomFunctionEditorWindow(CTkInputDialog):
19
19
  **kwargs):
20
20
  super().__init__(*args, **kwargs)
21
21
 
22
- self.geometry("400x800")
22
+ screen_width = self.winfo_screenwidth()
23
+ screen_height = self.winfo_screenheight()
24
+ win_width = 400
25
+ win_height = 800
26
+ if screen_width < win_width:
27
+ win_width = screen_width * 0.9
28
+
29
+ if screen_height < win_height:
30
+ win_height = screen_height * 0.9
31
+
32
+ # Calculate the x and y coordinates to center the window
33
+ x_coord = (screen_width // 2) - (win_width // 2)
34
+ y_coord = (screen_height // 2) - (win_height // 2)
35
+
36
+ self.geometry(f"{win_width}x{win_height}+{x_coord}+{y_coord}")
23
37
 
24
38
  self.step_index = step_index
25
39
  self.function_index = function_index
@@ -18,7 +18,21 @@ class OverrideParameterWindow(CTkInputDialog):
18
18
  **kwargs):
19
19
  super().__init__(*args, **kwargs)
20
20
 
21
- self.geometry("400x800")
21
+ screen_width = self.winfo_screenwidth()
22
+ screen_height = self.winfo_screenheight()
23
+ win_width = 400
24
+ win_height = 800
25
+ if screen_width < win_width:
26
+ win_width = screen_width * 0.9
27
+
28
+ if screen_height < win_height:
29
+ win_height = screen_height * 0.9
30
+
31
+ # Calculate the x and y coordinates to center the window
32
+ x_coord = (screen_width // 2) - (win_width // 2)
33
+ y_coord = (screen_height // 2) - (win_height // 2)
34
+
35
+ self.geometry(f"{win_width}x{win_height}+{x_coord}+{y_coord}")
22
36
 
23
37
  self.step_index = step_index
24
38
  self.option_manager = option_manager
@@ -19,7 +19,21 @@ class SamplingNameListWindow(CTkInputDialog):
19
19
  **kwargs):
20
20
  super().__init__(*args, **kwargs)
21
21
 
22
- self.geometry("400x800")
22
+ screen_width = self.winfo_screenwidth()
23
+ screen_height = self.winfo_screenheight()
24
+ win_width = 400
25
+ win_height = 800
26
+ if screen_width < win_width:
27
+ win_width = screen_width * 0.9
28
+
29
+ if screen_height < win_height:
30
+ win_height = screen_height * 0.9
31
+
32
+ # Calculate the x and y coordinates to center the window
33
+ x_coord = (screen_width // 2) - (win_width // 2)
34
+ y_coord = (screen_height // 2) - (win_height // 2)
35
+
36
+ self.geometry(f"{win_width}x{win_height}+{x_coord}+{y_coord}")
23
37
 
24
38
  self.step_index = step_index
25
39
  self.bound_index = bound_index