psiutils 0.1.74__py3-none-any.whl → 0.2.0__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 +1 -1
- psiutils/buttons.py +2 -1
- psiutils/icons/revert.png +0 -0
- psiutils/text.py +1 -0
- psiutils/utilities.py +3 -11
- {psiutils-0.1.74.dist-info → psiutils-0.2.0.dist-info}/METADATA +1 -1
- {psiutils-0.1.74.dist-info → psiutils-0.2.0.dist-info}/RECORD +8 -7
- {psiutils-0.1.74.dist-info → psiutils-0.2.0.dist-info}/WHEEL +0 -0
psiutils/_version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '0.
|
|
1
|
+
__version__ = '0.2.0'
|
psiutils/buttons.py
CHANGED
|
@@ -16,9 +16,9 @@ class IconButton(ttk.Frame):
|
|
|
16
16
|
master,
|
|
17
17
|
button_text,
|
|
18
18
|
icon,
|
|
19
|
+
dimmable: bool = False,
|
|
19
20
|
command=None,
|
|
20
21
|
sticky: str = '',
|
|
21
|
-
dimmable: bool = False,
|
|
22
22
|
icon_path: str = '',
|
|
23
23
|
**kwargs):
|
|
24
24
|
super().__init__(master, borderwidth=1, relief='raised', **kwargs)
|
|
@@ -238,6 +238,7 @@ icon_buttons = {
|
|
|
238
238
|
'rename': (txt.RENAME, 'rename'),
|
|
239
239
|
'report': (txt.REPORT, 'report'),
|
|
240
240
|
'reset': (txt.RESET, 'reset'),
|
|
241
|
+
'revert': (txt.REVERT, 'revert'),
|
|
241
242
|
'run': (txt.RUN, 'start'),
|
|
242
243
|
'save': (txt.SAVE, 'save'),
|
|
243
244
|
'script': (txt.SCRIPT, 'script'),
|
|
Binary file
|
psiutils/text.py
CHANGED
psiutils/utilities.py
CHANGED
|
@@ -6,7 +6,6 @@ from typing import Any
|
|
|
6
6
|
import platform
|
|
7
7
|
|
|
8
8
|
from psiconfig import TomlConfig
|
|
9
|
-
from psiutils._logger import logger
|
|
10
9
|
import psiutils.text as txt
|
|
11
10
|
|
|
12
11
|
DEFAULT_GEOMETRY = '500x400'
|
|
@@ -72,13 +71,6 @@ def enable_frame(parent: tk.Frame, enable: bool = True) -> None:
|
|
|
72
71
|
else:
|
|
73
72
|
child.configure(state=state)
|
|
74
73
|
|
|
75
|
-
|
|
76
|
-
# def geometry(geometry: dict, form: str = '') -> str:
|
|
77
|
-
# system = platform.system()
|
|
78
|
-
# if system not in ['Linux', 'Windows']:
|
|
79
|
-
# system = 'Linux'
|
|
80
|
-
# return geometry[Path(form).stem][system]
|
|
81
|
-
|
|
82
74
|
def geometry(config: TomlConfig, file: Path, default: str = '') -> str:
|
|
83
75
|
if not default:
|
|
84
76
|
default = DEFAULT_GEOMETRY
|
|
@@ -94,7 +86,7 @@ def window_resize(master: tk.Tk, file: str, *args) -> None:
|
|
|
94
86
|
f'{master.root.winfo_width()}x{master.root.winfo_height()}+'
|
|
95
87
|
f'{master.root.winfo_x()}+{match[2]}')
|
|
96
88
|
master.config.read()
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
master.config.update('geometry',
|
|
89
|
+
new_geometry = master.config.geometry
|
|
90
|
+
new_geometry[Path(file).stem] = window_geometry
|
|
91
|
+
master.config.update('geometry', new_geometry)
|
|
100
92
|
master.config.save()
|
|
@@ -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=clN3TnyYyt5T_wUJLVBmutS2kYLLBET4JFB2QXnRm2Q,21
|
|
5
|
+
psiutils/buttons.py,sha256=Li2IztSGWxkfOilOYfB_QsAisfNxifffEX6SY5lqf14,8483
|
|
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
|
|
@@ -32,6 +32,7 @@ psiutils/icons/refresh.png,sha256=r-WkScAbDbB15mXzZqEXgys-V1UkDDxRZHrssgTRh1c,21
|
|
|
32
32
|
psiutils/icons/rename.png,sha256=nEBej5-3BaFi-y1oIgDXCVHkKXndwxu5RW-eCEgu5UY,549
|
|
33
33
|
psiutils/icons/report.png,sha256=gyMzrZkl4QyVd9XsOpAdFZlw-al9J4PTpIBM3EssAyg,979
|
|
34
34
|
psiutils/icons/reset.png,sha256=UJHvnseHeMJoPNCn-WydTnfX-Lrlp9tgSlcIq6jWUBg,1296
|
|
35
|
+
psiutils/icons/revert.png,sha256=vWIyLx7dQfTOkI8igLmVtmV8hnBfIh089QmKRRobVmk,1268
|
|
35
36
|
psiutils/icons/save.png,sha256=RSIfWkVE537tMgchS5VFmHughVQqkKMyjMLY0ccDy98,613
|
|
36
37
|
psiutils/icons/script.png,sha256=CG5MYayO1X5O7q40byfMwya1_52rp8BYq-FWUDBG5fg,803
|
|
37
38
|
psiutils/icons/send.png,sha256=4PSUVt8NAKLIxYEYpdMQHNigmfjyUSL8VAsMBmBxxmM,968
|
|
@@ -45,10 +46,10 @@ psiutils/images/icon-query.png,sha256=e18hqkew4eOxABvECKn7BGO2VTHTE-XLMWPSQfSW9d
|
|
|
45
46
|
psiutils/known_paths.py,sha256=P5AR482y-9YQjL_4VUx4cUTPYhffiTrWLEqQGYL24R4,9158
|
|
46
47
|
psiutils/menus.py,sha256=4pUHb3fEYzLnsftxdKB_NjlPryj_pu7WN5Iy5Quy9-M,1746
|
|
47
48
|
psiutils/messagebox.py,sha256=14W4KzEg8Fi1OCiOX9zZvomoSqibAYNipQpa95Tco5M,4969
|
|
48
|
-
psiutils/text.py,sha256
|
|
49
|
+
psiutils/text.py,sha256=DrSW2QLwWatoFj0ZJpNHD6esmeUC8QmdmsQ1TPaTito,806
|
|
49
50
|
psiutils/treeview.py,sha256=jtSzLWrnFIBDWV5YhWNRoZwgW-Kj8_7XVqZyusr-riQ,2826
|
|
50
|
-
psiutils/utilities.py,sha256=
|
|
51
|
+
psiutils/utilities.py,sha256=68ySHUG-bfec-J4gPz7uacaV6s5swSmMCgmXdpF_eYA,2874
|
|
51
52
|
psiutils/widgets.py,sha256=ooGAy0IU3ct9aeqnBqMUr2AVyqg_zKHG8Fm9Gm-Wn5Y,11114
|
|
52
|
-
psiutils-0.
|
|
53
|
-
psiutils-0.
|
|
54
|
-
psiutils-0.
|
|
53
|
+
psiutils-0.2.0.dist-info/WHEEL,sha256=4n27za1eEkOnA7dNjN6C5-O2rUiw6iapszm14Uj-Qmk,79
|
|
54
|
+
psiutils-0.2.0.dist-info/METADATA,sha256=cIYq0HAa-DbqT4HgAGPBZpKpAVfe4zL2l59xVHciK1A,1976
|
|
55
|
+
psiutils-0.2.0.dist-info/RECORD,,
|
|
File without changes
|