frontengine 0.0.69__py3-none-any.whl → 0.0.71__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.
@@ -4,7 +4,7 @@ from pathlib import Path
4
4
  from PySide6.QtCore import Qt, QUrl
5
5
  from PySide6.QtGui import QIcon, QAction
6
6
  from PySide6.QtWebEngineWidgets import QWebEngineView
7
- from PySide6.QtWidgets import QMessageBox
7
+ from PySide6.QtWidgets import QMessageBox, QMenu
8
8
 
9
9
  from frontengine.utils.multi_language.language_wrapper import language_wrapper
10
10
 
@@ -13,6 +13,8 @@ class WebWidget(QWebEngineView):
13
13
 
14
14
  def __init__(self, url: str, is_file: bool = False):
15
15
  super().__init__()
16
+ self.menu = None
17
+ self.close_action = None
16
18
  self.opacity: float = 0.2
17
19
  self.setAttribute(Qt.WidgetAttribute.WA_DeleteOnClose)
18
20
  if not is_file:
@@ -36,10 +38,12 @@ class WebWidget(QWebEngineView):
36
38
  self.setWindowIcon(QIcon(str(self.icon_path)))
37
39
 
38
40
  def contextMenuEvent(self, event):
39
- self.menu = self.createStandardContextMenu()
40
- self.close_action = QAction("Close")
41
- self.close_action.triggered.connect(self.close)
42
- self.menu.addAction(self.close_action)
41
+ if self.close_action is None:
42
+ self.close_action = QAction("Close")
43
+ self.close_action.triggered.connect(self.close)
44
+ if self.menu is None:
45
+ self.menu = QMenu(self)
46
+ self.menu.addAction(self.close_action)
43
47
  self.menu.popup(event.globalPos())
44
48
 
45
49
  def set_ui_variable(self, opacity: float = 0.2) -> None:
frontengine/ui/main_ui.py CHANGED
@@ -31,7 +31,8 @@ FrontEngine_EXTEND_TAB: Dict[str, Type[QWidget]] = {}
31
31
 
32
32
  class FrontEngineMainUI(QMainWindow):
33
33
 
34
- def __init__(self, main_app: QApplication = None, debug: bool = False, show_system_tray_ray: bool = True):
34
+ def __init__(self, main_app: QApplication = None, debug: bool = False,
35
+ show_system_tray_ray: bool = True, redirect_output: bool = True):
35
36
  super().__init__()
36
37
  # User setting
37
38
  self.id = "FrontEngine"
@@ -66,7 +67,8 @@ class FrontEngineMainUI(QMainWindow):
66
67
  self.sound_player_setting_ui,
67
68
  self.text_setting_ui,
68
69
  self.scene_setting_ui,
69
- self.particle_setting_ui
70
+ self.particle_setting_ui,
71
+ redirect_output
70
72
  )
71
73
  # Style menu bar
72
74
  self.menu_bar = QMenuBar()
@@ -26,7 +26,8 @@ class ControlCenterUI(QWidget):
26
26
  sound_player_setting_ui: SoundPlayerSettingUI,
27
27
  text_setting_ui: TextSettingUI,
28
28
  scene_setting_ui: SceneSettingUI,
29
- particle_setting_ui: ParticleSettingUI
29
+ particle_setting_ui: ParticleSettingUI,
30
+ redirect_output:bool = True
30
31
  ):
31
32
  super().__init__()
32
33
  # Layout
@@ -111,12 +112,13 @@ class ControlCenterUI(QWidget):
111
112
  self.grid_layout.addWidget(self.clear_all_button, 7, 0)
112
113
  self.grid_layout.addWidget(self.log_panel_scroll_area, 0, 1, -1, -1)
113
114
  self.setLayout(self.grid_layout)
114
- # Redirect
115
- self.redirect_timer = QTimer(self)
116
- self.redirect_timer.setInterval(10)
117
- self.redirect_timer.timeout.connect(self.redirect)
118
- self.redirect_timer.start()
119
- redirect_manager_instance.set_redirect(self, True)
115
+ if redirect_output:
116
+ # Redirect
117
+ self.redirect_timer = QTimer(self)
118
+ self.redirect_timer.setInterval(10)
119
+ self.redirect_timer.timeout.connect(self.redirect)
120
+ self.redirect_timer.start()
121
+ redirect_manager_instance.set_redirect(self, True)
120
122
 
121
123
  def clear_video(self) -> None:
122
124
  front_engine_logger.info("clear_video")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: frontengine
3
- Version: 0.0.69
3
+ Version: 0.0.71
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
@@ -26,11 +26,11 @@ frontengine/show/text/draw_text.py,sha256=7uXWXDVU6TE5sfQ52bXCNkl0uBIR3dku7xyZPK
26
26
  frontengine/show/video/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
27
27
  frontengine/show/video/video_player.py,sha256=ndiMp4nNvxJ3cpuBw_qvtbdm8dnwdm7Jnxl3ke0i0ZU,3360
28
28
  frontengine/show/web/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
29
- frontengine/show/web/webview.py,sha256=2-7HW395Fp0SZnjUcrTGW-AWk_5OAAyzgjoXnnPpQoE,2842
29
+ frontengine/show/web/webview.py,sha256=KBu68YCjXDMhd4Y_dN5rILD7YQOo5H-t6v6KafB0Z4I,2974
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=I_ZouKjVRNZnO4rBsY08juHbsZiMoVJc5_Vt3o-FLUc,7416
33
+ frontengine/ui/main_ui.py,sha256=g-6RpWmqjxwtM-xumPRxQvgMWvIz0BEkBvkn-Ki1ypU,7494
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
@@ -43,7 +43,7 @@ frontengine/ui/menu/language_menu.py,sha256=p0nA4bgxc7CIX8_WxUKlnjNLFyvmqCx-h6GX
43
43
  frontengine/ui/page/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
44
44
  frontengine/ui/page/utils.py,sha256=xhCZuF8DwB4mYn8H76PDIAgSpz1WuIl4V07tSbzm9Ks,1808
45
45
  frontengine/ui/page/control_center/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
46
- frontengine/ui/page/control_center/control_center_ui.py,sha256=BxXlWwW9uf48b1jfWgtTBCGZOShlW03m8kzI43YjpaM,8237
46
+ frontengine/ui/page/control_center/control_center_ui.py,sha256=QuUYHfZI6Y5ugCWlr3aT4JGY1ijfp2fxNpfcNu3q2sQ,8332
47
47
  frontengine/ui/page/gif/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
48
48
  frontengine/ui/page/gif/gif_setting_ui.py,sha256=UwtgEozpLcs4n0gbiH26gWDNwcfMMWOgYpWV3Nk9XLA,7151
49
49
  frontengine/ui/page/image/__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-0.0.69.dist-info/LICENSE,sha256=b3VlPBXnrDylKGffOEOLWMgOX-yfd65XC7PA1_sox2o,1085
109
- frontengine-0.0.69.dist-info/METADATA,sha256=eNCZDlCgfzXscO4d1dHzLAN2sS0pSjxWjfKf3NX4TNA,2166
110
- frontengine-0.0.69.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
111
- frontengine-0.0.69.dist-info/top_level.txt,sha256=btCybScN_ubeQ8phsSDBB0T-HyHjqt7b-WPy61uTox0,12
112
- frontengine-0.0.69.dist-info/RECORD,,
108
+ frontengine-0.0.71.dist-info/LICENSE,sha256=b3VlPBXnrDylKGffOEOLWMgOX-yfd65XC7PA1_sox2o,1085
109
+ frontengine-0.0.71.dist-info/METADATA,sha256=0tFv5OhwmTivsTGPhcSk4x5B8pShfo_hToIC7cauf_0,2166
110
+ frontengine-0.0.71.dist-info/WHEEL,sha256=Z4pYXqR_rTB7OWNDYFOm1qRk0RX6GFP2o8LgvP453Hk,91
111
+ frontengine-0.0.71.dist-info/top_level.txt,sha256=btCybScN_ubeQ8phsSDBB0T-HyHjqt7b-WPy61uTox0,12
112
+ frontengine-0.0.71.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.43.0)
2
+ Generator: setuptools (70.3.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5