frontengine 0.0.7__py3-none-any.whl → 0.0.9__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 +3 -6
- frontengine/show/image/paint_image.py +3 -6
- frontengine/show/sound_player/sound_effect.py +8 -5
- frontengine/show/sound_player/sound_player.py +8 -5
- frontengine/show/text/draw_text.py +3 -6
- frontengine/show/video/video_player.py +5 -5
- frontengine/show/web/webview.py +3 -5
- {frontengine-0.0.7.dist-info → frontengine-0.0.9.dist-info}/METADATA +1 -1
- {frontengine-0.0.7.dist-info → frontengine-0.0.9.dist-info}/RECORD +12 -12
- {frontengine-0.0.7.dist-info → frontengine-0.0.9.dist-info}/LICENSE +0 -0
- {frontengine-0.0.7.dist-info → frontengine-0.0.9.dist-info}/WHEEL +0 -0
- {frontengine-0.0.7.dist-info → frontengine-0.0.9.dist-info}/top_level.txt +0 -0
@@ -3,7 +3,7 @@ from pathlib import Path
|
|
3
3
|
|
4
4
|
from PySide6.QtCore import Qt, QRect
|
5
5
|
from PySide6.QtGui import QMovie, QPainter, QIcon
|
6
|
-
from PySide6.QtWidgets import QWidget, QLabel, QMessageBox
|
6
|
+
from PySide6.QtWidgets import QWidget, QLabel, QMessageBox
|
7
7
|
|
8
8
|
|
9
9
|
class GifWidget(QWidget):
|
@@ -34,11 +34,8 @@ class GifWidget(QWidget):
|
|
34
34
|
self.setWindowTitle("GIF AND WEBP")
|
35
35
|
# Set Icon
|
36
36
|
self.icon_path = Path(os.getcwd() + "/je_driver_icon.ico")
|
37
|
-
self.
|
38
|
-
|
39
|
-
self.setWindowIcon(self.icon)
|
40
|
-
self.system_icon = QSystemTrayIcon()
|
41
|
-
self.system_icon.setIcon(self.icon)
|
37
|
+
if self.icon_path.exists() and self.icon_path.is_file():
|
38
|
+
self.setWindowIcon(QIcon(str(self.icon_path)))
|
42
39
|
|
43
40
|
def paintEvent(self, event) -> None:
|
44
41
|
current_gif_frame = self.movie.currentPixmap()
|
@@ -2,7 +2,7 @@ import os
|
|
2
2
|
from pathlib import Path
|
3
3
|
|
4
4
|
from PySide6.QtCore import Qt, QRect
|
5
|
-
from PySide6.QtGui import QPainter, QImage
|
5
|
+
from PySide6.QtGui import QPainter, QImage, QIcon
|
6
6
|
from PySide6.QtWidgets import QWidget, QMessageBox
|
7
7
|
|
8
8
|
|
@@ -28,11 +28,8 @@ class ImageWidget(QWidget):
|
|
28
28
|
self.setWindowTitle("Image")
|
29
29
|
# Set Icon
|
30
30
|
self.icon_path = Path(os.getcwd() + "/je_driver_icon.ico")
|
31
|
-
self.
|
32
|
-
|
33
|
-
self.setWindowIcon(self.icon)
|
34
|
-
self.system_icon = QSystemTrayIcon()
|
35
|
-
self.system_icon.setIcon(self.icon)
|
31
|
+
if self.icon_path.exists() and self.icon_path.is_file():
|
32
|
+
self.setWindowIcon(QIcon(str(self.icon_path)))
|
36
33
|
|
37
34
|
def paintEvent(self, event) -> None:
|
38
35
|
painter = QPainter(self)
|
@@ -2,6 +2,7 @@ import os
|
|
2
2
|
from pathlib import Path
|
3
3
|
|
4
4
|
from PySide6.QtCore import Qt, QUrl
|
5
|
+
from PySide6.QtGui import QIcon
|
5
6
|
from PySide6.QtMultimedia import QSoundEffect
|
6
7
|
from PySide6.QtWidgets import QWidget, QMessageBox
|
7
8
|
|
@@ -21,6 +22,8 @@ class SoundEffectWidget(QWidget):
|
|
21
22
|
if self.sound_path.exists() and self.sound_path.is_file():
|
22
23
|
self.sound_player.setSource(QUrl.fromLocalFile(str(self.sound_path)))
|
23
24
|
self.sound_player.setVolume(volume)
|
25
|
+
# -2 means loop forever
|
26
|
+
self.sound_player.setLoopCount(-2)
|
24
27
|
self.sound_player.play()
|
25
28
|
else:
|
26
29
|
message_box = QMessageBox(self)
|
@@ -30,13 +33,13 @@ class SoundEffectWidget(QWidget):
|
|
30
33
|
self.setWindowTitle("Sound Wave")
|
31
34
|
# Set Icon
|
32
35
|
self.icon_path = Path(os.getcwd() + "/je_driver_icon.ico")
|
33
|
-
self.
|
34
|
-
|
35
|
-
self.setWindowIcon(self.icon)
|
36
|
-
self.system_icon = QSystemTrayIcon()
|
37
|
-
self.system_icon.setIcon(self.icon)
|
36
|
+
if self.icon_path.exists() and self.icon_path.is_file():
|
37
|
+
self.setWindowIcon(QIcon(str(self.icon_path)))
|
38
38
|
|
39
39
|
def close(self):
|
40
40
|
super().close()
|
41
41
|
self.sound_player.stop()
|
42
42
|
|
43
|
+
def closeEvent(self, event):
|
44
|
+
super().closeEvent(event)
|
45
|
+
self.sound_player.stop()
|
@@ -2,6 +2,7 @@ import os
|
|
2
2
|
from pathlib import Path
|
3
3
|
|
4
4
|
from PySide6.QtCore import Qt, QUrl
|
5
|
+
from PySide6.QtGui import QIcon
|
5
6
|
from PySide6.QtMultimedia import QMediaPlayer, QAudioOutput
|
6
7
|
from PySide6.QtWidgets import QWidget, QMessageBox
|
7
8
|
|
@@ -24,6 +25,7 @@ class SoundPlayer(QWidget):
|
|
24
25
|
self.media_player_audio = self.media_player.audioOutput()
|
25
26
|
self.media_player.setSource(QUrl.fromLocalFile(str(self.sound_path)))
|
26
27
|
self.media_player_audio.setVolume(volume)
|
28
|
+
self.media_player.setLoops(-1)
|
27
29
|
self.media_player.play()
|
28
30
|
else:
|
29
31
|
message_box = QMessageBox(self)
|
@@ -33,12 +35,13 @@ class SoundPlayer(QWidget):
|
|
33
35
|
self.setWindowTitle("Sound")
|
34
36
|
# Set Icon
|
35
37
|
self.icon_path = Path(os.getcwd() + "/je_driver_icon.ico")
|
36
|
-
self.
|
37
|
-
|
38
|
-
self.setWindowIcon(self.icon)
|
39
|
-
self.system_icon = QSystemTrayIcon()
|
40
|
-
self.system_icon.setIcon(self.icon)
|
38
|
+
if self.icon_path.exists() and self.icon_path.is_file():
|
39
|
+
self.setWindowIcon(QIcon(str(self.icon_path)))
|
41
40
|
|
42
41
|
def close(self):
|
43
42
|
super().close()
|
44
43
|
self.media_player.stop()
|
44
|
+
|
45
|
+
def closeEvent(self, event):
|
46
|
+
super().closeEvent(event)
|
47
|
+
self.media_player.stop()
|
@@ -2,7 +2,7 @@ import os
|
|
2
2
|
from pathlib import Path
|
3
3
|
|
4
4
|
from PySide6.QtCore import Qt, QRect
|
5
|
-
from PySide6.QtGui import QPainter, QFontDatabase
|
5
|
+
from PySide6.QtGui import QPainter, QFontDatabase, QIcon
|
6
6
|
from PySide6.QtWidgets import QWidget
|
7
7
|
|
8
8
|
|
@@ -23,11 +23,8 @@ class TextWidget(QWidget):
|
|
23
23
|
self.setWindowTitle("Text")
|
24
24
|
# Set Icon
|
25
25
|
self.icon_path = Path(os.getcwd() + "/je_driver_icon.ico")
|
26
|
-
self.
|
27
|
-
|
28
|
-
self.setWindowIcon(self.icon)
|
29
|
-
self.system_icon = QSystemTrayIcon()
|
30
|
-
self.system_icon.setIcon(self.icon)
|
26
|
+
if self.icon_path.exists() and self.icon_path.is_file():
|
27
|
+
self.setWindowIcon(QIcon(str(self.icon_path)))
|
31
28
|
|
32
29
|
def paintEvent(self, event) -> None:
|
33
30
|
painter = QPainter(self)
|
@@ -2,6 +2,7 @@ import os
|
|
2
2
|
from pathlib import Path
|
3
3
|
|
4
4
|
from PySide6.QtCore import Qt, QUrl
|
5
|
+
from PySide6.QtGui import QIcon
|
5
6
|
from PySide6.QtMultimedia import QMediaPlayer, QAudioOutput
|
6
7
|
from PySide6.QtMultimediaWidgets import QVideoWidget
|
7
8
|
from PySide6.QtWidgets import QMessageBox
|
@@ -32,6 +33,7 @@ class VideoWidget(QVideoWidget):
|
|
32
33
|
self.media_player.setAudioOutput(self.audioOutput)
|
33
34
|
self.media_player.setPlaybackRate(play_rate)
|
34
35
|
self.media_player.audioOutput().setVolume(volume)
|
36
|
+
self.media_player.setLoops(-1)
|
35
37
|
self.media_player.play()
|
36
38
|
else:
|
37
39
|
message_box = QMessageBox(self)
|
@@ -40,11 +42,9 @@ class VideoWidget(QVideoWidget):
|
|
40
42
|
self.setWindowTitle("Video")
|
41
43
|
# Set Icon
|
42
44
|
self.icon_path = Path(os.getcwd() + "/je_driver_icon.ico")
|
43
|
-
self.
|
44
|
-
|
45
|
-
self.setWindowIcon(self.icon)
|
46
|
-
self.system_icon = QSystemTrayIcon()
|
47
|
-
self.system_icon.setIcon(self.icon)
|
45
|
+
if self.icon_path.exists() and self.icon_path.is_file():
|
46
|
+
self.setWindowIcon(QIcon(str(self.icon_path)))
|
48
47
|
|
49
48
|
def closeEvent(self, event):
|
49
|
+
super().closeEvent(event)
|
50
50
|
self.media_player.stop()
|
frontengine/show/web/webview.py
CHANGED
@@ -2,6 +2,7 @@ import os
|
|
2
2
|
from pathlib import Path
|
3
3
|
|
4
4
|
from PySide6.QtCore import Qt
|
5
|
+
from PySide6.QtGui import QIcon
|
5
6
|
from PySide6.QtWebEngineWidgets import QWebEngineView
|
6
7
|
|
7
8
|
|
@@ -19,8 +20,5 @@ class WebWidget(QWebEngineView):
|
|
19
20
|
self.setWindowOpacity(opacity)
|
20
21
|
# Set Icon
|
21
22
|
self.icon_path = Path(os.getcwd() + "/je_driver_icon.ico")
|
22
|
-
self.
|
23
|
-
|
24
|
-
self.setWindowIcon(self.icon)
|
25
|
-
self.system_icon = QSystemTrayIcon()
|
26
|
-
self.system_icon.setIcon(self.icon)
|
23
|
+
if self.icon_path.exists() and self.icon_path.is_file():
|
24
|
+
self.setWindowIcon(QIcon(str(self.icon_path)))
|
@@ -1,18 +1,18 @@
|
|
1
1
|
frontengine/__init__.py,sha256=g9AFKgmRNHt0lxkEy9qm1uY_868lYxZI3Gb6GrurUpo,104
|
2
2
|
frontengine/show/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
3
3
|
frontengine/show/gif/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
4
|
-
frontengine/show/gif/paint_gif.py,sha256=
|
4
|
+
frontengine/show/gif/paint_gif.py,sha256=lAGwabkbq_bQPVtijDb2d7vShnNjQwsSPJ80DvxjAc8,1882
|
5
5
|
frontengine/show/image/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
|
-
frontengine/show/image/paint_image.py,sha256=
|
6
|
+
frontengine/show/image/paint_image.py,sha256=0dtS3tg_MNXxuJ_xeVh0t3jCFFw1c6LiBXWcMx22t_0,1451
|
7
7
|
frontengine/show/sound_player/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
8
|
-
frontengine/show/sound_player/sound_effect.py,sha256=
|
9
|
-
frontengine/show/sound_player/sound_player.py,sha256=
|
8
|
+
frontengine/show/sound_player/sound_effect.py,sha256=CwS3LtOJBBW6BDMaf4Cdc_OAPBvJOe0opuFQkE0cML8,1629
|
9
|
+
frontengine/show/sound_player/sound_player.py,sha256=8DOAZclmLr1dLnEjgTHle5s2x95DDfOp8gBwGwVP6UM,1797
|
10
10
|
frontengine/show/text/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
11
|
-
frontengine/show/text/draw_text.py,sha256=
|
11
|
+
frontengine/show/text/draw_text.py,sha256=hhS6O10HADZoUNBGgJQ-vKTxbo7IBsFGtKR1FdmCxro,1443
|
12
12
|
frontengine/show/video/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
13
|
-
frontengine/show/video/video_player.py,sha256=
|
13
|
+
frontengine/show/video/video_player.py,sha256=gewpgjC9PFSLUlLkTGmf6ZN-HkS3Mg4o7_A0He38KBw,1969
|
14
14
|
frontengine/show/web/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
15
|
-
frontengine/show/web/webview.py,sha256=
|
15
|
+
frontengine/show/web/webview.py,sha256=ziYX-z-DwaUYa3nGTvJrA70eUh7XUhEgXBDc9Kk1DXs,825
|
16
16
|
frontengine/ui/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
17
17
|
frontengine/ui/main/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
18
18
|
frontengine/ui/main/main_ui.py,sha256=okai4jeDJp1EGkq3ya8Npddjsl680xgK4RF4U5ETS5c,2659
|
@@ -55,8 +55,8 @@ frontengine/utils/json/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3
|
|
55
55
|
frontengine/utils/json/json_file.py,sha256=sNJ6nNyoO_DV4KOJ8ZZz459Lo52nSxiL8maJi9-8DJA,1384
|
56
56
|
frontengine/utils/json_format/__init__.py,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
|
57
57
|
frontengine/utils/json_format/json_process.py,sha256=xJt_4Hm_o3sNDoeGtRW9Q7fsRj3DLiTbW-W8IqB8vt8,1021
|
58
|
-
frontengine-0.0.
|
59
|
-
frontengine-0.0.
|
60
|
-
frontengine-0.0.
|
61
|
-
frontengine-0.0.
|
62
|
-
frontengine-0.0.
|
58
|
+
frontengine-0.0.9.dist-info/LICENSE,sha256=ATvBYSYmbRD32jRYAuicY1sXjumpBZIxao_xkWc4CmU,1084
|
59
|
+
frontengine-0.0.9.dist-info/METADATA,sha256=2SOQx8HIy2aInu8Od2WzsdKoF809A5aIn-vPJKF05p4,1466
|
60
|
+
frontengine-0.0.9.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
|
61
|
+
frontengine-0.0.9.dist-info/top_level.txt,sha256=btCybScN_ubeQ8phsSDBB0T-HyHjqt7b-WPy61uTox0,12
|
62
|
+
frontengine-0.0.9.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|