frontengine 0.0.67__py3-none-any.whl → 0.0.69__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/show/gif/paint_gif.py +1 -0
- frontengine/show/image/paint_image.py +1 -0
- frontengine/ui/main_ui.py +5 -3
- frontengine/ui/page/gif/gif_setting_ui.py +5 -4
- frontengine/ui/page/image/image_setting_ui.py +5 -4
- frontengine/ui/page/utils.py +8 -1
- frontengine/ui/page/video/video_setting_ui.py +5 -4
- {frontengine-0.0.67.dist-info → frontengine-0.0.69.dist-info}/METADATA +1 -1
- {frontengine-0.0.67.dist-info → frontengine-0.0.69.dist-info}/RECORD +12 -12
- {frontengine-0.0.67.dist-info → frontengine-0.0.69.dist-info}/LICENSE +0 -0
- {frontengine-0.0.67.dist-info → frontengine-0.0.69.dist-info}/WHEEL +0 -0
- {frontengine-0.0.67.dist-info → frontengine-0.0.69.dist-info}/top_level.txt +0 -0
@@ -28,6 +28,7 @@ class GifWidget(QWidget):
|
|
28
28
|
self.movie.frameChanged.connect(self.repaint)
|
29
29
|
self.gif_label.setMovie(self.movie)
|
30
30
|
self.movie.start()
|
31
|
+
self.resize(self.movie.frameRect().size())
|
31
32
|
else:
|
32
33
|
message_box: QMessageBox = QMessageBox(self)
|
33
34
|
message_box.setText(
|
@@ -19,6 +19,7 @@ class ImageWidget(QWidget):
|
|
19
19
|
if self.image_path.exists() and self.image_path.is_file():
|
20
20
|
print(f"Origin file {str(self.image_path)}")
|
21
21
|
self.image = QImage(str(self.image_path))
|
22
|
+
self.resize(self.image.size())
|
22
23
|
else:
|
23
24
|
message_box: QMessageBox = QMessageBox(self)
|
24
25
|
message_box.setText(
|
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
|
-
|
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:
|
@@ -5,7 +5,8 @@ from PySide6.QtWidgets import QWidget, QGridLayout, QLabel, QSlider, QPushButton
|
|
5
5
|
|
6
6
|
from frontengine.show.gif.paint_gif import GifWidget
|
7
7
|
from frontengine.ui.dialog.choose_file_dialog import choose_gif
|
8
|
-
from frontengine.ui.page.utils import monitor_choose_dialog,
|
8
|
+
from frontengine.ui.page.utils import monitor_choose_dialog, check_show_fullscreen_multi_screen, \
|
9
|
+
check_show_fullscreen_one_screen
|
9
10
|
from frontengine.utils.logging.loggin_instance import front_engine_logger
|
10
11
|
from frontengine.utils.multi_language.language_wrapper import language_wrapper
|
11
12
|
|
@@ -113,7 +114,7 @@ class GIFSettingUI(QWidget):
|
|
113
114
|
monitors = QGuiApplication.screens()
|
114
115
|
if self.show_all_screen is False and len(monitors) <= 1:
|
115
116
|
gif_widget = self._create_gif_widget()
|
116
|
-
gif_widget.
|
117
|
+
check_show_fullscreen_one_screen(gif_widget, self.fullscreen_checkbox)
|
117
118
|
elif self.show_all_screen is False and len(monitors) >= 2:
|
118
119
|
input_dialog, combobox = monitor_choose_dialog(self, monitors)
|
119
120
|
result = input_dialog.exec_()
|
@@ -122,11 +123,11 @@ class GIFSettingUI(QWidget):
|
|
122
123
|
if len(monitors) > select_monitor_index:
|
123
124
|
monitor = monitors[select_monitor_index]
|
124
125
|
gif_widget = self._create_gif_widget()
|
125
|
-
|
126
|
+
check_show_fullscreen_multi_screen(gif_widget, self.fullscreen_checkbox, monitor)
|
126
127
|
else:
|
127
128
|
for monitor in monitors:
|
128
129
|
gif_widget = self._create_gif_widget()
|
129
|
-
|
130
|
+
check_show_fullscreen_multi_screen(gif_widget, self.fullscreen_checkbox, monitor)
|
130
131
|
|
131
132
|
def choose_and_copy_file_to_cwd_gif_dir_then_play(self) -> None:
|
132
133
|
self.ready_label.setText(
|
@@ -5,7 +5,8 @@ from PySide6.QtWidgets import QWidget, QGridLayout, QSlider, QLabel, QPushButton
|
|
5
5
|
|
6
6
|
from frontengine.show.image.paint_image import ImageWidget
|
7
7
|
from frontengine.ui.dialog.choose_file_dialog import choose_image
|
8
|
-
from frontengine.ui.page.utils import monitor_choose_dialog,
|
8
|
+
from frontengine.ui.page.utils import monitor_choose_dialog, check_show_fullscreen_multi_screen, \
|
9
|
+
check_show_fullscreen_one_screen
|
9
10
|
from frontengine.utils.logging.loggin_instance import front_engine_logger
|
10
11
|
from frontengine.utils.multi_language.language_wrapper import language_wrapper
|
11
12
|
|
@@ -98,7 +99,7 @@ class ImageSettingUI(QWidget):
|
|
98
99
|
monitors = QGuiApplication.screens()
|
99
100
|
if self.show_all_screen is False and len(monitors) <= 1:
|
100
101
|
image_widget = self._create_image_widget()
|
101
|
-
image_widget.
|
102
|
+
check_show_fullscreen_one_screen(image_widget, self.fullscreen_checkbox)
|
102
103
|
elif self.show_all_screen is False and len(monitors) >= 2:
|
103
104
|
input_dialog, combobox = monitor_choose_dialog(self, monitors)
|
104
105
|
result = input_dialog.exec_()
|
@@ -107,12 +108,12 @@ class ImageSettingUI(QWidget):
|
|
107
108
|
if len(monitors) > select_monitor_index:
|
108
109
|
monitor = monitors[select_monitor_index]
|
109
110
|
image_widget = self._create_image_widget()
|
110
|
-
|
111
|
+
check_show_fullscreen_multi_screen(image_widget, self.fullscreen_checkbox, monitor)
|
111
112
|
|
112
113
|
else:
|
113
114
|
for monitor in monitors:
|
114
115
|
image_widget = self._create_image_widget()
|
115
|
-
|
116
|
+
check_show_fullscreen_multi_screen(image_widget, self.fullscreen_checkbox, monitor)
|
116
117
|
|
117
118
|
def choose_and_copy_file_to_cwd_image_dir_then_play(self) -> None:
|
118
119
|
self.ready_label.setText(
|
frontengine/ui/page/utils.py
CHANGED
@@ -24,7 +24,7 @@ def monitor_choose_dialog(parent: QWidget, monitors: list):
|
|
24
24
|
return input_dialog, combobox
|
25
25
|
|
26
26
|
|
27
|
-
def
|
27
|
+
def check_show_fullscreen_multi_screen(widget: QWidget, fullscreen_checkbox: QCheckBox, monitor: QScreen):
|
28
28
|
if fullscreen_checkbox.isChecked():
|
29
29
|
widget.setScreen(monitor)
|
30
30
|
widget.move(monitor.availableGeometry().topLeft())
|
@@ -34,3 +34,10 @@ def check_show_fullscreen(widget: QWidget, fullscreen_checkbox: QCheckBox, monit
|
|
34
34
|
center = monitor.availableGeometry().center()
|
35
35
|
widget.move(center - widget.rect().center())
|
36
36
|
widget.show()
|
37
|
+
|
38
|
+
|
39
|
+
def check_show_fullscreen_one_screen(widget: QWidget, fullscreen_checkbox: QCheckBox):
|
40
|
+
if fullscreen_checkbox.isChecked():
|
41
|
+
widget.showFullScreen()
|
42
|
+
else:
|
43
|
+
widget.show()
|
@@ -4,7 +4,8 @@ from PySide6.QtWidgets import QWidget, QGridLayout, QSlider, QLabel, QPushButton
|
|
4
4
|
|
5
5
|
from frontengine.show.video.video_player import VideoWidget
|
6
6
|
from frontengine.ui.dialog.choose_file_dialog import choose_video
|
7
|
-
from frontengine.ui.page.utils import monitor_choose_dialog,
|
7
|
+
from frontengine.ui.page.utils import monitor_choose_dialog, check_show_fullscreen_multi_screen, \
|
8
|
+
check_show_fullscreen_one_screen
|
8
9
|
from frontengine.utils.logging.loggin_instance import front_engine_logger
|
9
10
|
from frontengine.utils.multi_language.language_wrapper import language_wrapper
|
10
11
|
|
@@ -128,7 +129,7 @@ class VideoSettingUI(QWidget):
|
|
128
129
|
monitors = QGuiApplication.screens()
|
129
130
|
if self.show_all_screen is False and len(monitors) <= 1:
|
130
131
|
video_widget = self._create_video_widget()
|
131
|
-
video_widget.
|
132
|
+
check_show_fullscreen_one_screen(video_widget, self.fullscreen_checkbox)
|
132
133
|
elif self.show_all_screen is False and len(monitors) >= 2:
|
133
134
|
input_dialog, combobox = monitor_choose_dialog(self, monitors)
|
134
135
|
result = input_dialog.exec_()
|
@@ -137,14 +138,14 @@ class VideoSettingUI(QWidget):
|
|
137
138
|
if len(monitors) > select_monitor_index:
|
138
139
|
monitor = monitors[select_monitor_index]
|
139
140
|
video_widget = self._create_video_widget()
|
140
|
-
|
141
|
+
check_show_fullscreen_multi_screen(video_widget, self.fullscreen_checkbox, monitor)
|
141
142
|
else:
|
142
143
|
count = 0
|
143
144
|
for monitor in monitors:
|
144
145
|
video_widget = self._create_video_widget()
|
145
146
|
if count >= 1:
|
146
147
|
video_widget.media_player.audioOutput().setVolume(0)
|
147
|
-
|
148
|
+
check_show_fullscreen_multi_screen(video_widget, self.fullscreen_checkbox, monitor)
|
148
149
|
count = count + 1
|
149
150
|
|
150
151
|
def choose_and_copy_file_to_cwd_gif_dir_then_play(self) -> None:
|
@@ -5,9 +5,9 @@ frontengine/show/clicker/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
|
|
5
5
|
frontengine/show/clicker/clicker_scene.py,sha256=pZJdy4xP52fgU1aZP74KNimJdW7jw6RKmjco2Ct_G5Y,149
|
6
6
|
frontengine/show/clicker/clicker_ui.py,sha256=XzayxCffi_LKocMzaIWV9WQ6Zpx1DnadFRCWeaB0j3k,1204
|
7
7
|
frontengine/show/gif/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
8
|
-
frontengine/show/gif/paint_gif.py,sha256=
|
8
|
+
frontengine/show/gif/paint_gif.py,sha256=IDF5HVZGKuuKs8fqjGgICe2fWvMTUPrTZJ6u2oteO8U,3080
|
9
9
|
frontengine/show/image/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
10
|
-
frontengine/show/image/paint_image.py,sha256=
|
10
|
+
frontengine/show/image/paint_image.py,sha256=1mlTMYvScXjvxdkIEu3x8TmMsVvFciMaQFUl_STcqrQ,2511
|
11
11
|
frontengine/show/load/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
12
12
|
frontengine/show/load/load_someone_make_ui.py,sha256=yjMrkA76VEYkKXygwKmoKaADymjjDlebI-7PNa6DrEo,1010
|
13
13
|
frontengine/show/particle/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -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=
|
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
|
@@ -41,13 +41,13 @@ frontengine/ui/menu/help_menu.py,sha256=WD6t4Mp5OKAlfI9RDKz2kN9ODBcil2rf4H61REK6
|
|
41
41
|
frontengine/ui/menu/how_to_menu.py,sha256=s1azoiD8H2lApbFPcrv8QvsR1mwh6O_gFHRngQ7bsbc,952
|
42
42
|
frontengine/ui/menu/language_menu.py,sha256=p0nA4bgxc7CIX8_WxUKlnjNLFyvmqCx-h6GXSazlVeM,4271
|
43
43
|
frontengine/ui/page/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
44
|
-
frontengine/ui/page/utils.py,sha256=
|
44
|
+
frontengine/ui/page/utils.py,sha256=xhCZuF8DwB4mYn8H76PDIAgSpz1WuIl4V07tSbzm9Ks,1808
|
45
45
|
frontengine/ui/page/control_center/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
46
46
|
frontengine/ui/page/control_center/control_center_ui.py,sha256=BxXlWwW9uf48b1jfWgtTBCGZOShlW03m8kzI43YjpaM,8237
|
47
47
|
frontengine/ui/page/gif/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
48
|
-
frontengine/ui/page/gif/gif_setting_ui.py,sha256=
|
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
|
50
|
-
frontengine/ui/page/image/image_setting_ui.py,sha256=
|
50
|
+
frontengine/ui/page/image/image_setting_ui.py,sha256=M09doSyJhjYR0vMsTWhLJ9gqNAH2Qffb3JGOB6EnHk0,6274
|
51
51
|
frontengine/ui/page/particle/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
52
52
|
frontengine/ui/page/particle/particle_setting_ui.py,sha256=mYRrXT2weh0Rn-d_Dz9yFR6CHYXjEgHxNlhapTwXD6E,8947
|
53
53
|
frontengine/ui/page/scene_setting/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -65,7 +65,7 @@ frontengine/ui/page/sound_player/sound_player_setting_ui.py,sha256=OFRxUyUXVj3-P
|
|
65
65
|
frontengine/ui/page/text/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
66
66
|
frontengine/ui/page/text/text_setting_ui.py,sha256=nSrXkezs7X9-7Kd16raaz3WZJFwyL4cuz3j74VQIS9U,6317
|
67
67
|
frontengine/ui/page/video/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
68
|
-
frontengine/ui/page/video/video_setting_ui.py,sha256=
|
68
|
+
frontengine/ui/page/video/video_setting_ui.py,sha256=6q_cG6PlTZpAlAm0oB7vEBMjsYtoXQE32dy2GXFrtL4,8313
|
69
69
|
frontengine/ui/page/web/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
70
70
|
frontengine/ui/page/web/web_setting_ui.py,sha256=FgTCn68WTeFp197mhvilWKK25m0xF0gSZ9b7hfG2ELQ,5596
|
71
71
|
frontengine/user_setting/__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.
|
109
|
-
frontengine-0.0.
|
110
|
-
frontengine-0.0.
|
111
|
-
frontengine-0.0.
|
112
|
-
frontengine-0.0.
|
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,,
|
File without changes
|
File without changes
|
File without changes
|