psiutils 0.2.7__py3-none-any.whl → 0.2.8__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.7'
1
+ __version__ = '0.2.8'
psiutils/text.py CHANGED
@@ -99,7 +99,7 @@ strings = {
99
99
 
100
100
  class Text():
101
101
  """Combines package level and psiutils strings."""
102
- def __init__(self) -> None:
102
+ def __init__(self, compare: dict = None) -> None:
103
103
  """
104
104
  Initialize the object with attributes based on the key-value pairs
105
105
  in the `strings` dictionary.
@@ -110,6 +110,19 @@ class Text():
110
110
  Returns:
111
111
  None
112
112
  """
113
-
113
+ self.strings = strings
114
114
  for key, string in strings.items():
115
115
  setattr(self, key, string)
116
+
117
+ # Optionally display contents of `strings`
118
+ def display(self, compare: dict = None) -> None:
119
+ if not compare:
120
+ compare = {}
121
+ for item in sorted(list(strings)):
122
+ output = f'{item:.<20} {strings[item]}'
123
+ if item in compare:
124
+ if strings[item] != compare[item]:
125
+ output = f'{output}, {compare[item]} ***'
126
+ else:
127
+ output = f'{output} <{"="*10} //duplicate//'
128
+ print(output)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: psiutils
3
- Version: 0.2.7
3
+ Version: 0.2.8
4
4
  Summary: Various TKinter utilities.
5
5
  Author: Jeff
6
6
  Author-email: Jeff <<jeffwatkins2000@gmail.com>>
@@ -2,7 +2,7 @@ psiutils/__init__.py,sha256=B8mLHCYCnD0LcwsGAtS3HM9kYdwVnhf6dNXL6i1H4kY,145
2
2
  psiutils/_about_frame.py,sha256=xZQivwvZc-k8C-SkwQne-dBr4gavDAL_32fv8E-7Wt0,7644
3
3
  psiutils/_logger.py,sha256=9nXxKWUyu4xqIILjTSUKRAMOG4cFy_EGJTTo0FtUAGU,2859
4
4
  psiutils/_notify.py,sha256=rGVPir7zVxDd52yt63xFFw7r_vZvusGue2BupJwECYU,266
5
- psiutils/_version.py,sha256=k14HNX-j7JGQmMcNd5V9YYE1rd2NN5QFLz4W-ttaFD0,21
5
+ psiutils/_version.py,sha256=1MeGsuS1PhEEHmvZ4CYVipAjr6XlyVy-M_a04LDWvEU,21
6
6
  psiutils/buttons.py,sha256=38vQc6A0ub1p4GHukNQB3ICx7vi-9M4RAt-eeuDCeBg,8567
7
7
  psiutils/constants.py,sha256=T8AjYBkmuziAWjXgON-Sj0AM62NAGluj_Y6glrOFbHc,1107
8
8
  psiutils/drag_manager.py,sha256=L04GzKIinWXzGCawvTnn18F1AEt8PUPS1U-HqCVrh48,3470
@@ -48,10 +48,10 @@ psiutils/images/icon-query.png,sha256=e18hqkew4eOxABvECKn7BGO2VTHTE-XLMWPSQfSW9d
48
48
  psiutils/known_paths.py,sha256=Ydhk-Ie_q827ti35Hru8YwUx5awdO2FEG845k1N0hPo,9543
49
49
  psiutils/menus.py,sha256=4pUHb3fEYzLnsftxdKB_NjlPryj_pu7WN5Iy5Quy9-M,1746
50
50
  psiutils/messagebox.py,sha256=14W4KzEg8Fi1OCiOX9zZvomoSqibAYNipQpa95Tco5M,4969
51
- psiutils/text.py,sha256=hhCflD9kOzVmR7Hm2swrX6YzMunAAyBFVQz_gYYLMkc,2382
51
+ psiutils/text.py,sha256=quQ6CUMkWe28qWpmVP2DumopETlZb31t2wviljzIC3U,2941
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.7.dist-info/WHEEL,sha256=Pi5uDq5Fdo_Rr-HD5h9BiPn9Et29Y9Sh8NhcJNnFU1c,79
56
- psiutils-0.2.7.dist-info/METADATA,sha256=sBcgWCG7iHCHUhaUaKZyXHiULTxPbtN5newxpHfUtE8,1976
57
- psiutils-0.2.7.dist-info/RECORD,,
55
+ psiutils-0.2.8.dist-info/WHEEL,sha256=Pi5uDq5Fdo_Rr-HD5h9BiPn9Et29Y9Sh8NhcJNnFU1c,79
56
+ psiutils-0.2.8.dist-info/METADATA,sha256=75_3mb00GCQOJJKELlI6fKKMwFudtnxFow0pPxNlC08,1976
57
+ psiutils-0.2.8.dist-info/RECORD,,