psiutils 0.2.15__py3-none-any.whl → 0.2.17__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/_version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '0.2.
|
|
1
|
+
__version__ = '0.2.17'
|
psiutils/constants.py
CHANGED
|
@@ -1,35 +1,33 @@
|
|
|
1
1
|
"""Constants for the tkinter psiutils."""
|
|
2
2
|
from enum import Enum, auto
|
|
3
3
|
|
|
4
|
-
from .utilities import invert
|
|
4
|
+
# from .utilities import invert
|
|
5
5
|
from .known_paths import get_documents_dir, get_downloads_dir
|
|
6
6
|
|
|
7
7
|
DEFAULT_GEOMETRY = '500x400'
|
|
8
8
|
|
|
9
|
-
# TODO is this needed with Status?
|
|
10
|
-
DIALOG_STATUS: dict = {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
DIALOG_STATUS = invert(DIALOG_STATUS)
|
|
22
|
-
|
|
23
|
-
# TODO is this needed with Mode?
|
|
24
|
-
MODES: dict[int, str] | dict[str, int] = {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
MODES = invert(MODES)
|
|
31
|
-
|
|
32
|
-
DEFAULT_GEOMETRY = '500x400'
|
|
9
|
+
# # TODO is this needed with Status?
|
|
10
|
+
# DIALOG_STATUS: dict = {
|
|
11
|
+
# 'yes': True,
|
|
12
|
+
# 'no': False,
|
|
13
|
+
# 'cancel': None,
|
|
14
|
+
# 'null': 0,
|
|
15
|
+
# 'undefined': 0,
|
|
16
|
+
# 'exit': 1,
|
|
17
|
+
# 'ok': 2,
|
|
18
|
+
# 'updated': 3,
|
|
19
|
+
# 'error': 4,
|
|
20
|
+
# }
|
|
21
|
+
# DIALOG_STATUS = invert(DIALOG_STATUS)
|
|
22
|
+
|
|
23
|
+
# # TODO is this needed with Mode?
|
|
24
|
+
# MODES: dict[int, str] | dict[str, int] = {
|
|
25
|
+
# 0: 'view',
|
|
26
|
+
# 1: 'new',
|
|
27
|
+
# 2: 'edit',
|
|
28
|
+
# 3: 'delete'
|
|
29
|
+
# }
|
|
30
|
+
# MODES = invert(MODES)
|
|
33
31
|
|
|
34
32
|
# GUI
|
|
35
33
|
PAD = 5
|
psiutils/text.py
CHANGED
|
@@ -4,6 +4,7 @@ from copy import copy
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
psi_strings = {
|
|
7
|
+
'BACKUP': 'Backup',
|
|
7
8
|
'BUILD': 'Build',
|
|
8
9
|
'CANCEL': 'Cancel',
|
|
9
10
|
'CHECK': 'Check',
|
|
@@ -61,7 +62,7 @@ class Text():
|
|
|
61
62
|
"""Combines package level and psiutils strings."""
|
|
62
63
|
def __init__(self) -> None:
|
|
63
64
|
"""
|
|
64
|
-
|
|
65
|
+
Initialise the object with attributes based on the key-value pairs
|
|
65
66
|
in the `strings` dictionary.
|
|
66
67
|
|
|
67
68
|
Args:
|
|
@@ -2,9 +2,9 @@ psiutils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
2
2
|
psiutils/_about_frame.py,sha256=Ei9RMja36x2Xc9SecCXnqXd9EzDe1LIHq4ZDDbKtc_I,7656
|
|
3
3
|
psiutils/_logger.py,sha256=9nXxKWUyu4xqIILjTSUKRAMOG4cFy_EGJTTo0FtUAGU,2859
|
|
4
4
|
psiutils/_notify.py,sha256=rQfYxPxsSwAEJBNXaAZSNlRmZLWB1sah1E1Oja9y-mw,437
|
|
5
|
-
psiutils/_version.py,sha256=
|
|
5
|
+
psiutils/_version.py,sha256=H-iiJBwzYPDRBHiVHegM9HPM7Gp3nVPPt9of6N2Usdg,22
|
|
6
6
|
psiutils/buttons.py,sha256=vj-RCKKl4_kYisrMqPi8w56eXfRkbx1zze8oqgS4GjM,8807
|
|
7
|
-
psiutils/constants.py,sha256
|
|
7
|
+
psiutils/constants.py,sha256=AJOw73GL9Rx9BEmfduTy32S3dM3Rp6iIOYALY0J7JSw,1541
|
|
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,10 +52,10 @@ psiutils/images/icon-query.png,sha256=e18hqkew4eOxABvECKn7BGO2VTHTE-XLMWPSQfSW9d
|
|
|
52
52
|
psiutils/known_paths.py,sha256=Ydhk-Ie_q827ti35Hru8YwUx5awdO2FEG845k1N0hPo,9543
|
|
53
53
|
psiutils/menus.py,sha256=4pUHb3fEYzLnsftxdKB_NjlPryj_pu7WN5Iy5Quy9-M,1746
|
|
54
54
|
psiutils/messagebox.py,sha256=ODFodaDahAm31A8M4MVp9FXdhI0zhW8PZdUbBqbVQEY,4973
|
|
55
|
-
psiutils/text.py,sha256=
|
|
55
|
+
psiutils/text.py,sha256=Jf8GsGKbJf0IyK1kpSGdOK5jjRBM-m-AQOWY3vvzILs,3098
|
|
56
56
|
psiutils/treeview.py,sha256=jtSzLWrnFIBDWV5YhWNRoZwgW-Kj8_7XVqZyusr-riQ,2826
|
|
57
57
|
psiutils/utilities.py,sha256=hBntrigp7WiuzRoGGhS96QVE-7pF2OdYT882jwMTrlQ,3355
|
|
58
58
|
psiutils/widgets.py,sha256=TOJKDEdYJetPZxFZohQGJsVX_k3E26-ChgSXqDeJ0Y4,11363
|
|
59
|
-
psiutils-0.2.
|
|
60
|
-
psiutils-0.2.
|
|
61
|
-
psiutils-0.2.
|
|
59
|
+
psiutils-0.2.17.dist-info/WHEEL,sha256=YUH1mBqsx8Dh2cQG2rlcuRYUhJddG9iClegy4IgnHik,79
|
|
60
|
+
psiutils-0.2.17.dist-info/METADATA,sha256=vLX1P_FokggRdlnCJMojU8XG5lHp8-6vA1iu4YXuUNw,2109
|
|
61
|
+
psiutils-0.2.17.dist-info/RECORD,,
|
|
File without changes
|