psiutils 0.2.2__py3-none-any.whl → 0.2.3__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.3'
|
psiutils/buttons.py
CHANGED
|
@@ -63,14 +63,14 @@ class IconButton(ttk.Frame):
|
|
|
63
63
|
|
|
64
64
|
def bind_widgets(self):
|
|
65
65
|
for widget in (self, self.button_label):
|
|
66
|
-
widget.bind(
|
|
67
|
-
widget.bind(
|
|
68
|
-
widget.bind(
|
|
66
|
+
widget.bind('<Button-1>', self._on_click)
|
|
67
|
+
widget.bind('<Enter>', self._enter_button)
|
|
68
|
+
widget.bind('<Leave>', lambda e: self.config(relief='raised'))
|
|
69
69
|
|
|
70
70
|
def _enter_button(self, event) -> None:
|
|
71
71
|
if self._state == tk.DISABLED:
|
|
72
72
|
return
|
|
73
|
-
self.config(relief=
|
|
73
|
+
self.config(relief='sunken')
|
|
74
74
|
event.widget.winfo_toplevel().config(cursor=HAND)
|
|
75
75
|
|
|
76
76
|
def _on_click(self, *args):
|
|
@@ -122,8 +122,11 @@ class ButtonFrame(ttk.Frame):
|
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
def icon_button(
|
|
125
|
-
self,
|
|
126
|
-
|
|
125
|
+
self,
|
|
126
|
+
id_: str,
|
|
127
|
+
dimmable: bool = False,
|
|
128
|
+
command: object = None) -> IconButton:
|
|
129
|
+
button = self.icon_buttons[id_]
|
|
127
130
|
button.dimmable = dimmable
|
|
128
131
|
button.command = command
|
|
129
132
|
return button
|
|
@@ -267,5 +270,5 @@ def list_icon_buttons() -> None:
|
|
|
267
270
|
|
|
268
271
|
for name, button in icon_buttons.items():
|
|
269
272
|
print(f'{name:<{name_length}} '
|
|
270
|
-
|
|
271
|
-
|
|
273
|
+
f'{button[0]:<{text_length}} '
|
|
274
|
+
f'{button[1]:<{icon_length}}')
|
|
Binary file
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
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=52Bn2dAcDm54G7VsH4jDIZRM1gMXHumVCPfVzOS-1X4,1725
|
|
4
|
-
psiutils/_version.py,sha256=
|
|
5
|
-
psiutils/buttons.py,sha256=
|
|
4
|
+
psiutils/_version.py,sha256=zobUzQ8dmi7v_frbQtjAC1pacNJVbwA_3bMaeLotBMU,21
|
|
5
|
+
psiutils/buttons.py,sha256=38vQc6A0ub1p4GHukNQB3ICx7vi-9M4RAt-eeuDCeBg,8567
|
|
6
6
|
psiutils/constants.py,sha256=T8AjYBkmuziAWjXgON-Sj0AM62NAGluj_Y6glrOFbHc,1107
|
|
7
7
|
psiutils/drag_manager.py,sha256=L04GzKIinWXzGCawvTnn18F1AEt8PUPS1U-HqCVrh48,3470
|
|
8
8
|
psiutils/errors.py,sha256=tAypFkpzpbeOppO9zKQimlnRVyr3sMPoiwh0yK3Yc88,562
|
|
@@ -35,6 +35,7 @@ psiutils/icons/reset.png,sha256=UJHvnseHeMJoPNCn-WydTnfX-Lrlp9tgSlcIq6jWUBg,1296
|
|
|
35
35
|
psiutils/icons/revert.png,sha256=vWIyLx7dQfTOkI8igLmVtmV8hnBfIh089QmKRRobVmk,1268
|
|
36
36
|
psiutils/icons/save.png,sha256=RSIfWkVE537tMgchS5VFmHughVQqkKMyjMLY0ccDy98,613
|
|
37
37
|
psiutils/icons/script.png,sha256=CG5MYayO1X5O7q40byfMwya1_52rp8BYq-FWUDBG5fg,803
|
|
38
|
+
psiutils/icons/search.png,sha256=egPfxgBOZGOeVIV8nvAnwCnv_4vstFzRVmZiqiOPBIA,1491
|
|
38
39
|
psiutils/icons/send.png,sha256=4PSUVt8NAKLIxYEYpdMQHNigmfjyUSL8VAsMBmBxxmM,968
|
|
39
40
|
psiutils/icons/start.png,sha256=lzi6occJJXKXlRoFjx76h1YhQy2lLk9IqCf-xDKadDc,1936
|
|
40
41
|
psiutils/icons/update.png,sha256=buOCd1Mq5M8Jbcd2HX6eZjLAQPxM5psFTGNqkkI7c7c,2212
|
|
@@ -50,6 +51,6 @@ psiutils/text.py,sha256=5M5EOGfKLj_2JeH1lweDX8MJR6bk_aZl2pnRXj3FiHk,824
|
|
|
50
51
|
psiutils/treeview.py,sha256=jtSzLWrnFIBDWV5YhWNRoZwgW-Kj8_7XVqZyusr-riQ,2826
|
|
51
52
|
psiutils/utilities.py,sha256=rAtDvUYn_1AF22x8kRVeeTh7POLN58wXUA5G_nEULS4,2911
|
|
52
53
|
psiutils/widgets.py,sha256=ooGAy0IU3ct9aeqnBqMUr2AVyqg_zKHG8Fm9Gm-Wn5Y,11114
|
|
53
|
-
psiutils-0.2.
|
|
54
|
-
psiutils-0.2.
|
|
55
|
-
psiutils-0.2.
|
|
54
|
+
psiutils-0.2.3.dist-info/WHEEL,sha256=NHRAbdxxzyL9K3IO2LjmlNqKSyPZnKv2BD16YYVKo18,79
|
|
55
|
+
psiutils-0.2.3.dist-info/METADATA,sha256=XY9sNewLrDso5PLOF9FY2OrumD2iOl1KaZwRbw38BhI,1976
|
|
56
|
+
psiutils-0.2.3.dist-info/RECORD,,
|
|
File without changes
|