psiutils 0.2.15__py3-none-any.whl → 0.2.18__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.15'
1
+ __version__ = '0.2.18'
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
- '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)
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
- Initialize the object with attributes based on the key-value pairs
65
+ Initialise the object with attributes based on the key-value pairs
65
66
  in the `strings` dictionary.
66
67
 
67
68
  Args:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: psiutils
3
- Version: 0.2.15
3
+ Version: 0.2.18
4
4
  Summary: Various TKinter utilities.
5
5
  Author: Jeff
6
6
  Author-email: Jeff <<jeffwatkins2000@gmail.com>>
@@ -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=n8L-CG7GwxdcaK3gVXpLPrQnpjUiTjhwgxpdZpr4XUY,22
5
+ psiutils/_version.py,sha256=Y5H04AnBcQJBdVrEZQ-udq9B-QAZZpa6im3A5-sArdI,22
6
6
  psiutils/buttons.py,sha256=vj-RCKKl4_kYisrMqPi8w56eXfRkbx1zze8oqgS4GjM,8807
7
- psiutils/constants.py,sha256=-jgP8_QCw91o0F4hS5CzUpPfupqsYrQ8K-Q_NdORvyg,1527
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
@@ -34,9 +34,9 @@ psiutils/icons/refresh.png,sha256=r-WkScAbDbB15mXzZqEXgys-V1UkDDxRZHrssgTRh1c,21
34
34
  psiutils/icons/rename.png,sha256=nEBej5-3BaFi-y1oIgDXCVHkKXndwxu5RW-eCEgu5UY,549
35
35
  psiutils/icons/report.png,sha256=gyMzrZkl4QyVd9XsOpAdFZlw-al9J4PTpIBM3EssAyg,979
36
36
  psiutils/icons/reset.png,sha256=UJHvnseHeMJoPNCn-WydTnfX-Lrlp9tgSlcIq6jWUBg,1296
37
- psiutils/icons/restore-database.png,sha256=ezBRAMVbAo9lbs_yPpWpdLxqUFOudiC7mlwNklOKR3A,625
38
- psiutils/icons/restore-page.png,sha256=WiYVxAHFq0iV_PsCt_5meInbAGAOGOfoYsHM_bWILlY,621
39
37
  psiutils/icons/restore.png,sha256=8XAPT_nD3yi5hUQG3OEW1QRQNKRKOdFV7nNIz4jO0RE,986
38
+ psiutils/icons/restore_database.png,sha256=ezBRAMVbAo9lbs_yPpWpdLxqUFOudiC7mlwNklOKR3A,625
39
+ psiutils/icons/restore_page.png,sha256=WiYVxAHFq0iV_PsCt_5meInbAGAOGOfoYsHM_bWILlY,621
40
40
  psiutils/icons/revert.png,sha256=vWIyLx7dQfTOkI8igLmVtmV8hnBfIh089QmKRRobVmk,1268
41
41
  psiutils/icons/save.png,sha256=RSIfWkVE537tMgchS5VFmHughVQqkKMyjMLY0ccDy98,613
42
42
  psiutils/icons/script.png,sha256=CG5MYayO1X5O7q40byfMwya1_52rp8BYq-FWUDBG5fg,803
@@ -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=Q8f3k-2Op0erGW0AqXptVErGBUaFl9nFNYwmYnp3a3c,3074
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.15.dist-info/WHEEL,sha256=YUH1mBqsx8Dh2cQG2rlcuRYUhJddG9iClegy4IgnHik,79
60
- psiutils-0.2.15.dist-info/METADATA,sha256=ja3DXZwdpSkhTKERDJ3vEq_OXKaddvq_-JRdrKNmtYU,2109
61
- psiutils-0.2.15.dist-info/RECORD,,
59
+ psiutils-0.2.18.dist-info/WHEEL,sha256=YUH1mBqsx8Dh2cQG2rlcuRYUhJddG9iClegy4IgnHik,79
60
+ psiutils-0.2.18.dist-info/METADATA,sha256=FJ9niUh37BU4WSlJUW_uyhbVqV6Vkv0x9TRhGRMl1PM,2109
61
+ psiutils-0.2.18.dist-info/RECORD,,
File without changes