winipedia-utils 0.1.63__py3-none-any.whl → 0.2.0__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.
Potentially problematic release.
This version of winipedia-utils might be problematic. Click here for more details.
- winipedia_utils/concurrent/concurrent.py +245 -242
- winipedia_utils/concurrent/multiprocessing.py +130 -115
- winipedia_utils/concurrent/multithreading.py +93 -93
- winipedia_utils/consts.py +23 -23
- winipedia_utils/data/__init__.py +1 -1
- winipedia_utils/data/dataframe/__init__.py +1 -0
- winipedia_utils/data/dataframe/cleaning.py +378 -0
- winipedia_utils/data/structures/__init__.py +1 -0
- winipedia_utils/data/structures/dicts.py +16 -0
- winipedia_utils/django/__init__.py +24 -24
- winipedia_utils/django/bulk.py +538 -538
- winipedia_utils/django/command.py +334 -334
- winipedia_utils/django/database.py +289 -289
- winipedia_utils/git/__init__.py +1 -1
- winipedia_utils/git/gitignore/__init__.py +1 -1
- winipedia_utils/git/gitignore/gitignore.py +136 -136
- winipedia_utils/git/pre_commit/__init__.py +1 -1
- winipedia_utils/git/pre_commit/config.py +70 -70
- winipedia_utils/git/pre_commit/hooks.py +109 -109
- winipedia_utils/git/pre_commit/run_hooks.py +49 -49
- winipedia_utils/iterating/__init__.py +1 -1
- winipedia_utils/iterating/iterate.py +29 -29
- winipedia_utils/logging/ansi.py +6 -6
- winipedia_utils/logging/config.py +64 -64
- winipedia_utils/logging/logger.py +26 -26
- winipedia_utils/modules/class_.py +119 -119
- winipedia_utils/modules/function.py +101 -103
- winipedia_utils/modules/module.py +379 -379
- winipedia_utils/modules/package.py +390 -390
- winipedia_utils/oop/mixins/meta.py +333 -331
- winipedia_utils/oop/mixins/mixin.py +37 -37
- winipedia_utils/os/__init__.py +1 -1
- winipedia_utils/os/os.py +63 -63
- winipedia_utils/projects/__init__.py +1 -1
- winipedia_utils/projects/poetry/__init__.py +1 -1
- winipedia_utils/projects/poetry/config.py +91 -91
- winipedia_utils/projects/poetry/poetry.py +31 -31
- winipedia_utils/projects/project.py +48 -48
- winipedia_utils/pyside/__init__.py +1 -1
- winipedia_utils/pyside/core/__init__.py +1 -1
- winipedia_utils/pyside/core/py_qiodevice.py +476 -476
- winipedia_utils/pyside/ui/__init__.py +1 -1
- winipedia_utils/pyside/ui/base/__init__.py +1 -1
- winipedia_utils/pyside/ui/base/base.py +180 -180
- winipedia_utils/pyside/ui/pages/__init__.py +1 -1
- winipedia_utils/pyside/ui/pages/base/__init__.py +1 -1
- winipedia_utils/pyside/ui/pages/base/base.py +92 -92
- winipedia_utils/pyside/ui/pages/browser.py +26 -26
- winipedia_utils/pyside/ui/pages/player.py +85 -85
- winipedia_utils/pyside/ui/widgets/__init__.py +1 -1
- winipedia_utils/pyside/ui/widgets/browser.py +243 -243
- winipedia_utils/pyside/ui/widgets/clickable_widget.py +57 -57
- winipedia_utils/pyside/ui/widgets/media_player.py +430 -430
- winipedia_utils/pyside/ui/widgets/notification.py +78 -78
- winipedia_utils/pyside/ui/windows/__init__.py +1 -1
- winipedia_utils/pyside/ui/windows/base/__init__.py +1 -1
- winipedia_utils/pyside/ui/windows/base/base.py +49 -49
- winipedia_utils/resources/__init__.py +1 -1
- winipedia_utils/resources/svgs/__init__.py +1 -1
- winipedia_utils/resources/svgs/download_arrow.svg +2 -2
- winipedia_utils/resources/svgs/exit_fullscreen_icon.svg +5 -5
- winipedia_utils/resources/svgs/fullscreen_icon.svg +2 -2
- winipedia_utils/resources/svgs/menu_icon.svg +3 -3
- winipedia_utils/resources/svgs/pause_icon.svg +3 -3
- winipedia_utils/resources/svgs/play_icon.svg +16 -16
- winipedia_utils/resources/svgs/plus_icon.svg +23 -23
- winipedia_utils/resources/svgs/svg.py +15 -15
- winipedia_utils/security/__init__.py +1 -1
- winipedia_utils/security/cryptography.py +29 -29
- winipedia_utils/security/keyring.py +70 -70
- winipedia_utils/setup.py +47 -47
- winipedia_utils/testing/assertions.py +23 -23
- winipedia_utils/testing/convention.py +177 -177
- winipedia_utils/testing/create_tests.py +291 -291
- winipedia_utils/testing/fixtures.py +28 -28
- winipedia_utils/testing/tests/base/fixtures/__init__.py +1 -1
- winipedia_utils/testing/tests/base/fixtures/fixture.py +6 -6
- winipedia_utils/testing/tests/base/fixtures/scopes/class_.py +33 -33
- winipedia_utils/testing/tests/base/fixtures/scopes/function.py +7 -7
- winipedia_utils/testing/tests/base/fixtures/scopes/module.py +31 -31
- winipedia_utils/testing/tests/base/fixtures/scopes/package.py +7 -7
- winipedia_utils/testing/tests/base/fixtures/scopes/session.py +312 -312
- winipedia_utils/testing/tests/base/utils/utils.py +82 -82
- winipedia_utils/testing/tests/conftest.py +32 -32
- winipedia_utils/text/string.py +126 -126
- {winipedia_utils-0.1.63.dist-info → winipedia_utils-0.2.0.dist-info}/METADATA +5 -4
- winipedia_utils-0.2.0.dist-info/RECORD +103 -0
- {winipedia_utils-0.1.63.dist-info → winipedia_utils-0.2.0.dist-info}/WHEEL +1 -1
- {winipedia_utils-0.1.63.dist-info → winipedia_utils-0.2.0.dist-info/licenses}/LICENSE +21 -21
- winipedia_utils/data/dataframe.py +0 -7
- winipedia_utils-0.1.63.dist-info/RECORD +0 -100
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
"""Clickable widget module.
|
|
2
|
-
|
|
3
|
-
This module contains clickable widget classes that emit signals when clicked.
|
|
4
|
-
Provides both regular QWidget and QVideoWidget variants with click functionality.
|
|
5
|
-
"""
|
|
6
|
-
|
|
7
|
-
from typing import Any
|
|
8
|
-
|
|
9
|
-
from PySide6.QtCore import Qt, Signal
|
|
10
|
-
from PySide6.QtMultimediaWidgets import QVideoWidget
|
|
11
|
-
from PySide6.QtWidgets import QWidget
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
class ClickableWidget(QWidget):
|
|
15
|
-
"""Widget that can be clicked.
|
|
16
|
-
|
|
17
|
-
A QWidget subclass that emits a clicked signal when the left mouse
|
|
18
|
-
button is pressed on the widget.
|
|
19
|
-
"""
|
|
20
|
-
|
|
21
|
-
clicked = Signal()
|
|
22
|
-
|
|
23
|
-
def mousePressEvent(self, event: Any) -> None: # noqa: N802
|
|
24
|
-
"""Handle mouse press event.
|
|
25
|
-
|
|
26
|
-
Emits the clicked signal when the left mouse button is pressed
|
|
27
|
-
and passes the event to the parent class.
|
|
28
|
-
|
|
29
|
-
Args:
|
|
30
|
-
event: The mouse press event containing button and position information.
|
|
31
|
-
"""
|
|
32
|
-
if event.button() == Qt.MouseButton.LeftButton:
|
|
33
|
-
self.clicked.emit()
|
|
34
|
-
super().mousePressEvent(event)
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
class ClickableVideoWidget(QVideoWidget):
|
|
38
|
-
"""Video widget that can be clicked.
|
|
39
|
-
|
|
40
|
-
A QVideoWidget subclass that emits a clicked signal when the left mouse
|
|
41
|
-
button is pressed on the video widget.
|
|
42
|
-
"""
|
|
43
|
-
|
|
44
|
-
clicked = Signal()
|
|
45
|
-
|
|
46
|
-
def mousePressEvent(self, event: Any) -> None: # noqa: N802
|
|
47
|
-
"""Handle mouse press event.
|
|
48
|
-
|
|
49
|
-
Emits the clicked signal when the left mouse button is pressed
|
|
50
|
-
and passes the event to the parent class.
|
|
51
|
-
|
|
52
|
-
Args:
|
|
53
|
-
event: The mouse press event containing button and position information.
|
|
54
|
-
"""
|
|
55
|
-
if event.button() == Qt.MouseButton.LeftButton:
|
|
56
|
-
self.clicked.emit()
|
|
57
|
-
super().mousePressEvent(event)
|
|
1
|
+
"""Clickable widget module.
|
|
2
|
+
|
|
3
|
+
This module contains clickable widget classes that emit signals when clicked.
|
|
4
|
+
Provides both regular QWidget and QVideoWidget variants with click functionality.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from typing import Any
|
|
8
|
+
|
|
9
|
+
from PySide6.QtCore import Qt, Signal
|
|
10
|
+
from PySide6.QtMultimediaWidgets import QVideoWidget
|
|
11
|
+
from PySide6.QtWidgets import QWidget
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class ClickableWidget(QWidget):
|
|
15
|
+
"""Widget that can be clicked.
|
|
16
|
+
|
|
17
|
+
A QWidget subclass that emits a clicked signal when the left mouse
|
|
18
|
+
button is pressed on the widget.
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
clicked = Signal()
|
|
22
|
+
|
|
23
|
+
def mousePressEvent(self, event: Any) -> None: # noqa: N802
|
|
24
|
+
"""Handle mouse press event.
|
|
25
|
+
|
|
26
|
+
Emits the clicked signal when the left mouse button is pressed
|
|
27
|
+
and passes the event to the parent class.
|
|
28
|
+
|
|
29
|
+
Args:
|
|
30
|
+
event: The mouse press event containing button and position information.
|
|
31
|
+
"""
|
|
32
|
+
if event.button() == Qt.MouseButton.LeftButton:
|
|
33
|
+
self.clicked.emit()
|
|
34
|
+
super().mousePressEvent(event)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class ClickableVideoWidget(QVideoWidget):
|
|
38
|
+
"""Video widget that can be clicked.
|
|
39
|
+
|
|
40
|
+
A QVideoWidget subclass that emits a clicked signal when the left mouse
|
|
41
|
+
button is pressed on the video widget.
|
|
42
|
+
"""
|
|
43
|
+
|
|
44
|
+
clicked = Signal()
|
|
45
|
+
|
|
46
|
+
def mousePressEvent(self, event: Any) -> None: # noqa: N802
|
|
47
|
+
"""Handle mouse press event.
|
|
48
|
+
|
|
49
|
+
Emits the clicked signal when the left mouse button is pressed
|
|
50
|
+
and passes the event to the parent class.
|
|
51
|
+
|
|
52
|
+
Args:
|
|
53
|
+
event: The mouse press event containing button and position information.
|
|
54
|
+
"""
|
|
55
|
+
if event.button() == Qt.MouseButton.LeftButton:
|
|
56
|
+
self.clicked.emit()
|
|
57
|
+
super().mousePressEvent(event)
|