frontengine-dev 0.0.69__py3-none-any.whl → 0.0.70__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.
frontengine/ui/main_ui.py CHANGED
@@ -31,10 +31,11 @@ FrontEngine_EXTEND_TAB: Dict[str, Type[QWidget]] = {}
31
31
 
32
32
  class FrontEngineMainUI(QMainWindow):
33
33
 
34
- def __init__(self, debug: bool = False, show_system_tray_ray: bool = True):
34
+ def __init__(self, main_app: QApplication = None, debug: bool = False, show_system_tray_ray: bool = True):
35
35
  super().__init__()
36
36
  # User setting
37
37
  self.id = "FrontEngine"
38
+ self.main_app = main_app
38
39
  QCoreApplication.setAttribute(Qt.ApplicationAttribute.AA_EnableHighDpiScaling)
39
40
  if sys.platform in ["win32", "cygwin", "msys"]:
40
41
  from ctypes import windll
@@ -150,7 +151,8 @@ class FrontEngineMainUI(QMainWindow):
150
151
  self.sound_player_setting_ui.sound_widget_list.clear()
151
152
  self.text_setting_ui.text_widget_list.clear()
152
153
  super().close()
153
- QCoreApplication.exit(0)
154
+ if self.main_app:
155
+ self.main_app.exit(0)
154
156
 
155
157
  @classmethod
156
158
  def debug_close(cls):
@@ -159,7 +161,7 @@ class FrontEngineMainUI(QMainWindow):
159
161
 
160
162
  def start_front_engine(debug: bool = False) -> None:
161
163
  main_app = QApplication(sys.argv)
162
- window = FrontEngineMainUI(debug=debug)
164
+ window = FrontEngineMainUI(main_app=main_app, debug=debug)
163
165
  try:
164
166
  window.startup_setting()
165
167
  except Exception as error:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: frontengine_dev
3
- Version: 0.0.69
3
+ Version: 0.0.70
4
4
  Summary: FrontEngine is BingGPT that can use-define front end or only use like screen saver
5
5
  Author-email: JE-Chen <jechenmailman@gmail.com>
6
6
  License: MIT
@@ -30,7 +30,7 @@ frontengine/show/web/webview.py,sha256=2-7HW395Fp0SZnjUcrTGW-AWk_5OAAyzgjoXnnPpQ
30
30
  frontengine/system_tray/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
31
31
  frontengine/system_tray/extend_system_tray.py,sha256=k4u2lEox-fCwmQKy1qnek9SGoqUkMFv8Av_DcNanwcE,1595
32
32
  frontengine/ui/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
33
- frontengine/ui/main_ui.py,sha256=47vTOtnNbiPV3J1LtKRRSnXlTmaedJSX7Cf4neIwhyA,7304
33
+ frontengine/ui/main_ui.py,sha256=I_ZouKjVRNZnO4rBsY08juHbsZiMoVJc5_Vt3o-FLUc,7416
34
34
  frontengine/ui/color/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
35
35
  frontengine/ui/color/global_color.py,sha256=Rh-R-X2BHVjcK5MTBZ1nEMVHgLj1rP4nk-wTQKbiwFA,125
36
36
  frontengine/ui/dialog/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -105,8 +105,8 @@ frontengine/utils/redirect_manager/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQe
105
105
  frontengine/utils/redirect_manager/redirect_manager_class.py,sha256=zGJeVpjRU12MCnhVAdksAIhK_IhddI4cNKVb7DMgOZA,1888
106
106
  frontengine/worker/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
107
107
  frontengine/worker/qthread_worker.py,sha256=TcmRv4PUlWxYLzMoB_6fUefEZpVhNy5D6_hhShAdKzU,875
108
- frontengine_dev-0.0.69.dist-info/LICENSE,sha256=b3VlPBXnrDylKGffOEOLWMgOX-yfd65XC7PA1_sox2o,1085
109
- frontengine_dev-0.0.69.dist-info/METADATA,sha256=NKUvMuP9HAibyb2wTu1EUnVyiyIpulBJ-x245v_u6Iw,2170
110
- frontengine_dev-0.0.69.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
111
- frontengine_dev-0.0.69.dist-info/top_level.txt,sha256=btCybScN_ubeQ8phsSDBB0T-HyHjqt7b-WPy61uTox0,12
112
- frontengine_dev-0.0.69.dist-info/RECORD,,
108
+ frontengine_dev-0.0.70.dist-info/LICENSE,sha256=b3VlPBXnrDylKGffOEOLWMgOX-yfd65XC7PA1_sox2o,1085
109
+ frontengine_dev-0.0.70.dist-info/METADATA,sha256=zXb3-rTtby6hfZw47iZv4kE9ep2wzYpzeZ-2jKDQueQ,2170
110
+ frontengine_dev-0.0.70.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
111
+ frontengine_dev-0.0.70.dist-info/top_level.txt,sha256=btCybScN_ubeQ8phsSDBB0T-HyHjqt7b-WPy61uTox0,12
112
+ frontengine_dev-0.0.70.dist-info/RECORD,,