psiutils 0.2.10__py3-none-any.whl → 0.2.12__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.
- psiutils/__init__.py +0 -15
- psiutils/_notify.py +11 -5
- psiutils/_version.py +1 -1
- psiutils/buttons.py +1 -1
- psiutils/constants.py +20 -0
- {psiutils-0.2.10.dist-info → psiutils-0.2.12.dist-info}/METADATA +4 -4
- {psiutils-0.2.10.dist-info → psiutils-0.2.12.dist-info}/RECORD +8 -8
- {psiutils-0.2.10.dist-info → psiutils-0.2.12.dist-info}/WHEEL +1 -1
psiutils/__init__.py
CHANGED
psiutils/_notify.py
CHANGED
|
@@ -1,11 +1,17 @@
|
|
|
1
|
+
"""Provide notifications on Linux platforms."""
|
|
1
2
|
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
gi
|
|
6
|
-
|
|
3
|
+
import platform
|
|
4
|
+
|
|
5
|
+
if platform.system() == 'Linux':
|
|
6
|
+
import gi
|
|
7
|
+
gi.require_version('Gio', '2.0')
|
|
8
|
+
gi.require_version('GioUnix', '2.0')
|
|
9
|
+
gi.require_version('Notify', '0.7')
|
|
10
|
+
from gi.repository import Notify
|
|
7
11
|
|
|
8
12
|
|
|
9
13
|
def _notify(title: str, message: str) -> None:
|
|
14
|
+
if platform.system() != 'Linux':
|
|
15
|
+
return
|
|
10
16
|
Notify.init(title)
|
|
11
17
|
Notify.Notification.new(message).show()
|
psiutils/_version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '0.2.
|
|
1
|
+
__version__ = '0.2.11'
|
psiutils/buttons.py
CHANGED
psiutils/constants.py
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
"""Constants for the tkinter psiutils."""
|
|
2
|
+
from enum import Enum, auto
|
|
3
|
+
|
|
2
4
|
from .utilities import invert
|
|
3
5
|
from .known_paths import get_documents_dir, get_downloads_dir
|
|
4
6
|
|
|
@@ -61,5 +63,23 @@ class Pad():
|
|
|
61
63
|
N = (PAD, 0)
|
|
62
64
|
S = (0, PAD)
|
|
63
65
|
|
|
66
|
+
|
|
64
67
|
DOCUMENTS_DIR = get_documents_dir()
|
|
65
68
|
DOWNLOADS_DIR = get_downloads_dir()
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
class Mode(Enum):
|
|
72
|
+
VIEW = auto()
|
|
73
|
+
NEW = auto()
|
|
74
|
+
EDIT = auto()
|
|
75
|
+
DELETE = auto()
|
|
76
|
+
|
|
77
|
+
class Status(Enum):
|
|
78
|
+
YES = True
|
|
79
|
+
NO = False
|
|
80
|
+
CANCEL = None
|
|
81
|
+
NULL = 0
|
|
82
|
+
EXIT = 1
|
|
83
|
+
OK = 2
|
|
84
|
+
UPDATED = 3
|
|
85
|
+
ERROR = 4
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: psiutils
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.12
|
|
4
4
|
Summary: Various TKinter utilities.
|
|
5
5
|
Author: Jeff
|
|
6
6
|
Author-email: Jeff <<jeffwatkins2000@gmail.com>>
|
|
@@ -9,14 +9,14 @@ Requires-Dist: markdown>=3.8.2
|
|
|
9
9
|
Requires-Dist: packaging>=25.0
|
|
10
10
|
Requires-Dist: pillow>=11.3.0
|
|
11
11
|
Requires-Dist: pluggy>=1.6.0
|
|
12
|
-
Requires-Dist: psi-toml>=0.0.
|
|
13
|
-
Requires-Dist: psiconfig>=0.0.
|
|
12
|
+
Requires-Dist: psi-toml>=0.0.21
|
|
13
|
+
Requires-Dist: psiconfig>=0.0.15
|
|
14
14
|
Requires-Dist: pygments>=2.19.2
|
|
15
15
|
Requires-Dist: tkinterweb>=4.4.4
|
|
16
16
|
Requires-Dist: tkinterweb-tkhtml>=1.1.1
|
|
17
17
|
Requires-Dist: tomli>=2.2.1
|
|
18
18
|
Requires-Dist: tomli-w>=1.2.0
|
|
19
|
-
Requires-Python:
|
|
19
|
+
Requires-Python: >=3.10, <3.13
|
|
20
20
|
Description-Content-Type: text/markdown
|
|
21
21
|
|
|
22
22
|
# psiutils
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
psiutils/__init__.py,sha256=
|
|
1
|
+
psiutils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
2
|
psiutils/_about_frame.py,sha256=xZQivwvZc-k8C-SkwQne-dBr4gavDAL_32fv8E-7Wt0,7644
|
|
3
3
|
psiutils/_logger.py,sha256=9nXxKWUyu4xqIILjTSUKRAMOG4cFy_EGJTTo0FtUAGU,2859
|
|
4
|
-
psiutils/_notify.py,sha256=
|
|
5
|
-
psiutils/_version.py,sha256=
|
|
6
|
-
psiutils/buttons.py,sha256=
|
|
7
|
-
psiutils/constants.py,sha256=
|
|
4
|
+
psiutils/_notify.py,sha256=rQfYxPxsSwAEJBNXaAZSNlRmZLWB1sah1E1Oja9y-mw,437
|
|
5
|
+
psiutils/_version.py,sha256=MDWVRBs0IWHig-yP3jl_AM0VvBpaMmDN0nBK4Hl8Idk,22
|
|
6
|
+
psiutils/buttons.py,sha256=gnrEn8qk42SGf7dpdFqWlnxQFivBULlCAdeUIBeQZgE,8585
|
|
7
|
+
psiutils/constants.py,sha256=HUXNOy-V9zGkvWRfOFNttQlq9exFLPoRvPSAfSCeuIg,1366
|
|
8
8
|
psiutils/drag_manager.py,sha256=L04GzKIinWXzGCawvTnn18F1AEt8PUPS1U-HqCVrh48,3470
|
|
9
9
|
psiutils/errors.py,sha256=tAypFkpzpbeOppO9zKQimlnRVyr3sMPoiwh0yK3Yc88,562
|
|
10
10
|
psiutils/icecream_init.py,sha256=ArKnRHGCyMfEwSykiHGdhBmX4JPhrgcpShii_GAPWLI,739
|
|
@@ -52,6 +52,6 @@ psiutils/text.py,sha256=HVJME2oUqeLZXCp2KaHg21vlp3CuhoP2T4T7ArqIxLs,3378
|
|
|
52
52
|
psiutils/treeview.py,sha256=jtSzLWrnFIBDWV5YhWNRoZwgW-Kj8_7XVqZyusr-riQ,2826
|
|
53
53
|
psiutils/utilities.py,sha256=bAoaYMumo0U8kz4pcPThYOY5Z3tPFe-a76Nhbwsd4lk,3005
|
|
54
54
|
psiutils/widgets.py,sha256=ooGAy0IU3ct9aeqnBqMUr2AVyqg_zKHG8Fm9Gm-Wn5Y,11114
|
|
55
|
-
psiutils-0.2.
|
|
56
|
-
psiutils-0.2.
|
|
57
|
-
psiutils-0.2.
|
|
55
|
+
psiutils-0.2.12.dist-info/WHEEL,sha256=pFCy50wRV2h7SjJ35YOsQUupaV45rMdgpNIvnXbG5bE,79
|
|
56
|
+
psiutils-0.2.12.dist-info/METADATA,sha256=yOG5ZW3MhjSDhwwXtga_znea2tNVXE0jyPPjhrS_-6s,1982
|
|
57
|
+
psiutils-0.2.12.dist-info/RECORD,,
|