mg-pso-gui 0.2.118__py3-none-any.whl → 0.2.119__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.118
3
+ Version: 0.2.119
4
4
  Summary: GUI for MG-PSO
5
5
  Author: Robert Cordingly
6
6
  Author-email: <rcording@uw.ed>
@@ -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=wLKME0xqpVuiNpsWnz9riPTC5BYsLOIN5JCWUQNpEE8,24665
4
+ mgpsogui/gui/HomePage.py,sha256=NiddhmNT9VXPl9s5ksFOkC6RHmTf5qQErQNeUuqJ9L8,25158
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
@@ -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.118.dist-info/METADATA,sha256=BZCiTHeeq5AsNHds9BREGurXbSvOOapbI9EWR0TGtaA,9542
77
- mg_pso_gui-0.2.118.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
78
- mg_pso_gui-0.2.118.dist-info/entry_points.txt,sha256=jg82VOFjR1XDGrchs1wJSCqKYE4Ozv12aBcCSp--koA,117
79
- mg_pso_gui-0.2.118.dist-info/top_level.txt,sha256=y7JuS9xJN5YdxUsQ3PSVjN8MzQAnR146bP3ZN3PYWdE,9
80
- mg_pso_gui-0.2.118.dist-info/RECORD,,
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,,
mgpsogui/gui/HomePage.py CHANGED
@@ -113,9 +113,25 @@ class App(customtkinter.CTk):
113
113
  self.calibration_data = None
114
114
  self.testing = False
115
115
 
116
- # configure window
117
- self.title("COSU Manager (v0.2.112)")
118
- self.geometry(f"{1920}x{1080}")
116
+ # Configure window
117
+ self.title("COSU Manager (v0.2.120)")
118
+
119
+ screen_width = self.winfo_screenwidth()
120
+ screen_height = self.winfo_screenheight()
121
+ win_width = 1920
122
+ win_height = 1080
123
+ if screen_width < win_width or screen_height < win_height:
124
+ win_width = screen_width * 0.9
125
+ win_height = screen_height * 0.9
126
+
127
+ # Calculate the x and y coordinates to center the window
128
+ x_coord = (screen_width // 2) - (win_width // 2)
129
+ y_coord = (screen_height // 2) - (win_height // 2)
130
+
131
+ self.geometry(f"{win_width}x{win_height}+{x_coord}+{y_coord}")
132
+
133
+ # Center the Window on the screen
134
+
119
135
 
120
136
  # configure grid layout (4x4)
121
137
  self.grid_columnconfigure(0, weight=1)