psiutils 0.2.8__py3-none-any.whl → 0.2.10__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.8'
1
+ __version__ = '0.2.10'
psiutils/buttons.py CHANGED
@@ -16,8 +16,8 @@ class IconButton(ttk.Frame):
16
16
  master,
17
17
  button_text,
18
18
  icon,
19
- dimmable: bool = False,
20
19
  command=None,
20
+ dimmable: bool = False,
21
21
  sticky: str = '',
22
22
  icon_path: str = '',
23
23
  **kwargs):
@@ -124,8 +124,8 @@ class ButtonFrame(ttk.Frame):
124
124
  def icon_button(
125
125
  self,
126
126
  id_: str,
127
- dimmable: bool = False,
128
- command: object = None) -> IconButton:
127
+ command: object = None,
128
+ dimmable: bool = False,) -> IconButton:
129
129
  button = self.icon_buttons[id_]
130
130
  button.dimmable = dimmable
131
131
  button.command = command
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, compare: dict = None) -> None:
102
+ def __init__(self) -> None:
103
103
  """
104
104
  Initialize the object with attributes based on the key-value pairs
105
105
  in the `strings` dictionary.
@@ -116,13 +116,28 @@ class Text():
116
116
 
117
117
  # Optionally display contents of `strings`
118
118
  def display(self, compare: dict = None) -> None:
119
+ """Print out contents of `strings` and compare if
120
+ a dict of strings is provided."""
121
+ duplicates = 0
122
+ overrides =0
119
123
  if not compare:
120
124
  compare = {}
121
125
  for item in sorted(list(strings)):
122
126
  output = f'{item:.<20} {strings[item]}'
123
127
  if item in compare:
124
128
  if strings[item] != compare[item]:
125
- output = f'{output}, {compare[item]} ***'
129
+ output = (f'{output}, {compare[item]} '
130
+ f'<{"-"*10} //override//')
131
+ overrides += 1
126
132
  else:
127
133
  output = f'{output} <{"="*10} //duplicate//'
134
+ duplicates += 1
128
135
  print(output)
136
+
137
+ if duplicates:
138
+ print()
139
+ print(f'{duplicates} duplicates found')
140
+
141
+ if overrides:
142
+ print()
143
+ print(f'{overrides} overrides found')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: psiutils
3
- Version: 0.2.8
3
+ Version: 0.2.10
4
4
  Summary: Various TKinter utilities.
5
5
  Author: Jeff
6
6
  Author-email: Jeff <<jeffwatkins2000@gmail.com>>
@@ -2,8 +2,8 @@ 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=1MeGsuS1PhEEHmvZ4CYVipAjr6XlyVy-M_a04LDWvEU,21
6
- psiutils/buttons.py,sha256=38vQc6A0ub1p4GHukNQB3ICx7vi-9M4RAt-eeuDCeBg,8567
5
+ psiutils/_version.py,sha256=Sg_6D3b_dkjLywxS_G9vAU50xLvx_3hgYewd0IeIFAQ,22
6
+ psiutils/buttons.py,sha256=iSsAyVXTcKxy5zjvBUB-TklsYOYtvTtWt3cTJynWhTc,8568
7
7
  psiutils/constants.py,sha256=T8AjYBkmuziAWjXgON-Sj0AM62NAGluj_Y6glrOFbHc,1107
8
8
  psiutils/drag_manager.py,sha256=L04GzKIinWXzGCawvTnn18F1AEt8PUPS1U-HqCVrh48,3470
9
9
  psiutils/errors.py,sha256=tAypFkpzpbeOppO9zKQimlnRVyr3sMPoiwh0yK3Yc88,562
@@ -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=quQ6CUMkWe28qWpmVP2DumopETlZb31t2wviljzIC3U,2941
51
+ 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.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,,
55
+ psiutils-0.2.10.dist-info/WHEEL,sha256=Pi5uDq5Fdo_Rr-HD5h9BiPn9Et29Y9Sh8NhcJNnFU1c,79
56
+ psiutils-0.2.10.dist-info/METADATA,sha256=yioxKjturjbmmVVCVuj7_rtF3A8wRhi2xY2UHeA9x0k,1977
57
+ psiutils-0.2.10.dist-info/RECORD,,