psiutils 0.1.75__py3-none-any.whl → 0.2.1__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.1
|
|
1
|
+
__version__ = '0.2.1'
|
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)
|
psiutils/utilities.py
CHANGED
|
@@ -6,8 +6,9 @@ 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
|
|
10
|
+
from psiutils._logger import logger
|
|
11
|
+
|
|
11
12
|
|
|
12
13
|
DEFAULT_GEOMETRY = '500x400'
|
|
13
14
|
|
|
@@ -72,13 +73,6 @@ def enable_frame(parent: tk.Frame, enable: bool = True) -> None:
|
|
|
72
73
|
else:
|
|
73
74
|
child.configure(state=state)
|
|
74
75
|
|
|
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
76
|
def geometry(config: TomlConfig, file: Path, default: str = '') -> str:
|
|
83
77
|
if not default:
|
|
84
78
|
default = DEFAULT_GEOMETRY
|
|
@@ -94,7 +88,7 @@ def window_resize(master: tk.Tk, file: str, *args) -> None:
|
|
|
94
88
|
f'{master.root.winfo_width()}x{master.root.winfo_height()}+'
|
|
95
89
|
f'{master.root.winfo_x()}+{match[2]}')
|
|
96
90
|
master.config.read()
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
master.config.update('geometry',
|
|
91
|
+
new_geometry = master.config.geometry
|
|
92
|
+
new_geometry[Path(file).stem] = window_geometry
|
|
93
|
+
master.config.update('geometry', new_geometry)
|
|
100
94
|
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=nx8uT9NOkkA2KzjU9Q36cvZlTi-7bCHVPIkXCQkwZf8,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
|
|
@@ -48,8 +48,8 @@ psiutils/menus.py,sha256=4pUHb3fEYzLnsftxdKB_NjlPryj_pu7WN5Iy5Quy9-M,1746
|
|
|
48
48
|
psiutils/messagebox.py,sha256=14W4KzEg8Fi1OCiOX9zZvomoSqibAYNipQpa95Tco5M,4969
|
|
49
49
|
psiutils/text.py,sha256=DrSW2QLwWatoFj0ZJpNHD6esmeUC8QmdmsQ1TPaTito,806
|
|
50
50
|
psiutils/treeview.py,sha256=jtSzLWrnFIBDWV5YhWNRoZwgW-Kj8_7XVqZyusr-riQ,2826
|
|
51
|
-
psiutils/utilities.py,sha256=
|
|
51
|
+
psiutils/utilities.py,sha256=rAtDvUYn_1AF22x8kRVeeTh7POLN58wXUA5G_nEULS4,2911
|
|
52
52
|
psiutils/widgets.py,sha256=ooGAy0IU3ct9aeqnBqMUr2AVyqg_zKHG8Fm9Gm-Wn5Y,11114
|
|
53
|
-
psiutils-0.1.
|
|
54
|
-
psiutils-0.1.
|
|
55
|
-
psiutils-0.1.
|
|
53
|
+
psiutils-0.2.1.dist-info/WHEEL,sha256=4n27za1eEkOnA7dNjN6C5-O2rUiw6iapszm14Uj-Qmk,79
|
|
54
|
+
psiutils-0.2.1.dist-info/METADATA,sha256=TTsNE2FtkIwcYgMvB5M4CvDQEv1yZI8aUQRW42Orikc,1976
|
|
55
|
+
psiutils-0.2.1.dist-info/RECORD,,
|
|
File without changes
|