CTKFileDialog-plus 0.5.4__py3-none-any.whl → 0.6.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.
- CTkFileDialog/Constants/__init__.py +10 -2
- CTkFileDialog/Constants/constants.py +16 -2
- CTkFileDialog/icons/_IconsMini/file.png +0 -0
- CTkFileDialog/icons/_IconsMini/folder.png +0 -0
- {ctkfiledialog_plus-0.5.4.dist-info → ctkfiledialog_plus-0.6.0.dist-info}/METADATA +3 -1
- {ctkfiledialog_plus-0.5.4.dist-info → ctkfiledialog_plus-0.6.0.dist-info}/RECORD +8 -6
- {ctkfiledialog_plus-0.5.4.dist-info → ctkfiledialog_plus-0.6.0.dist-info}/WHEEL +0 -0
- {ctkfiledialog_plus-0.5.4.dist-info → ctkfiledialog_plus-0.6.0.dist-info}/top_level.txt +0 -0
|
@@ -17,12 +17,18 @@ Available constants:
|
|
|
17
17
|
- DATA_DIR: XDG-compliant user data directory (e.g., ~/.local/share).
|
|
18
18
|
- PATH: List of directories in the system PATH environment variable.
|
|
19
19
|
- VENV: Path to the active Python virtual environment (VIRTUAL_ENV or CONDA_PREFIX).
|
|
20
|
+
- DOWNLOAD_DIR: Default download directory (e.g., ~/Downloads).
|
|
21
|
+
- DOWNLOAD_DIR_VIDEO: Default video download directory (e.g., ~/Downloads/Video).
|
|
20
22
|
|
|
21
23
|
Author: Flick
|
|
22
24
|
Repository: https://github.com/FlickGMD/CTkFileDialog
|
|
25
|
+
|
|
26
|
+
Modified: by abdelilah
|
|
27
|
+
https://github.com/hmidani-abdelilah/CTkFileDialog-plus
|
|
28
|
+
|
|
23
29
|
"""
|
|
24
30
|
|
|
25
|
-
from .constants import PWD, HOME, PATH, TEMP, CONFIG_DIR, CACHE_DIR, DATA_DIR, VENV, PATHS
|
|
31
|
+
from .constants import PWD, HOME, PATH, TEMP, CONFIG_DIR, CACHE_DIR, DATA_DIR, VENV, PATHS ,DOWNLOAD_DIR, DOWNLOAD_DIR_VIDEO
|
|
26
32
|
|
|
27
33
|
__all__ = [
|
|
28
34
|
'PWD',
|
|
@@ -34,4 +40,6 @@ __all__ = [
|
|
|
34
40
|
'DATA_DIR',
|
|
35
41
|
'VENV',
|
|
36
42
|
'PATHS',
|
|
37
|
-
|
|
43
|
+
'DOWNLOAD_DIR',
|
|
44
|
+
'DOWNLOAD_DIR_VIDEO',
|
|
45
|
+
]
|
|
@@ -8,6 +8,8 @@ PWD = str(Path.cwd())
|
|
|
8
8
|
# User's home directory (e.g., /home/user or C:\Users\user)
|
|
9
9
|
HOME = str(Path.home())
|
|
10
10
|
|
|
11
|
+
|
|
12
|
+
|
|
11
13
|
# System PATH split into a list of directories
|
|
12
14
|
PATH = os.getenv('PATH').split(os.pathsep)
|
|
13
15
|
|
|
@@ -26,6 +28,16 @@ DATA_DIR = os.getenv('XDG_DATA_HOME', str(Path(HOME) / '.local' / 'share'))
|
|
|
26
28
|
# Active Python virtual environment (venv or conda), fallback to PWD
|
|
27
29
|
VENV = os.getenv("VIRTUAL_ENV") or os.getenv("CONDA_PREFIX") or PWD
|
|
28
30
|
|
|
31
|
+
# Download directory windows and linux (default: ~/Downloads)
|
|
32
|
+
DOWNLOAD_DIR = str(Path(HOME) / 'Downloads')
|
|
33
|
+
|
|
34
|
+
# Download directory Video windows and linux (default: ~/Downloads/Video )
|
|
35
|
+
DOWNLOAD_DIR_VIDEO = str(Path(DOWNLOAD_DIR) / 'Video')
|
|
36
|
+
# create the directory if it doesn't exist
|
|
37
|
+
if not os.path.exists(DOWNLOAD_DIR_VIDEO):
|
|
38
|
+
os.makedirs(DOWNLOAD_DIR_VIDEO)
|
|
39
|
+
|
|
40
|
+
|
|
29
41
|
# All paths in a single dictionary for easy access
|
|
30
42
|
PATHS = {
|
|
31
43
|
"HOME": HOME,
|
|
@@ -35,5 +47,7 @@ PATHS = {
|
|
|
35
47
|
"DATA_DIR": DATA_DIR,
|
|
36
48
|
"CACHE_DIR": CACHE_DIR,
|
|
37
49
|
"PATH": PATH,
|
|
38
|
-
'VENV': VENV
|
|
39
|
-
|
|
50
|
+
'VENV': VENV,
|
|
51
|
+
'DOWNLOAD_DIR': DOWNLOAD_DIR,
|
|
52
|
+
'DOWNLOAD_DIR_VIDEO': DOWNLOAD_DIR_VIDEO
|
|
53
|
+
}
|
|
Binary file
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: CTKFileDialog-plus
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.6.0
|
|
4
4
|
Summary: A modern file dialog for CustomTkinter
|
|
5
5
|
Home-page: https://github.com/hmidani-abdelilah/CTkFileDialog-plus
|
|
6
6
|
Author: abdelilah
|
|
@@ -388,6 +388,8 @@ root.mainloop()
|
|
|
388
388
|
| `PATH` | System PATH split into a list of directories |
|
|
389
389
|
| `DATA_DIR` | XDG-compliant user data directory (default: ~/.local/share) |
|
|
390
390
|
| `VENV` | Active Python virtual environment (venv or conda), fallback to PWD |
|
|
391
|
+
| `DOWNLOAD_DIR` | Default download directory (e.g., ~/Downloads or C:\Users\user\Download). |
|
|
392
|
+
| `DOWNLOAD_DIR_VIDEO` | Default video download directory (e.g., ~/Downloads/Video or C:\Users\user\Download\Video).|
|
|
391
393
|
|
|
392
394
|
|
|
393
395
|
</div>
|
|
@@ -2,8 +2,8 @@ CTkFileDialog/Dialog.py,sha256=3R6DGsGs2_ZAiWS0EFfMjncK88D5mTTG-Opv8MVqIRk,52766
|
|
|
2
2
|
CTkFileDialog/__init__.py,sha256=eBXc4lNCdBVrOkOkI8fyk7lOp3nIb52cuF_fSbbbV-w,706
|
|
3
3
|
CTkFileDialog/_functions.py,sha256=-YQDtlQDn7iR6-3WuVJIrIEOYekl7nImts5a_9Fmtps,21234
|
|
4
4
|
CTkFileDialog/_system.py,sha256=0-iM6JDBRs90hOAfd1xNY3X7YPXJjr0hJYRJqxuHAlM,1641
|
|
5
|
-
CTkFileDialog/Constants/__init__.py,sha256=
|
|
6
|
-
CTkFileDialog/Constants/constants.py,sha256=
|
|
5
|
+
CTkFileDialog/Constants/__init__.py,sha256=fCvrA-GR_nhOdONzRqde2lfM23X-60iBypiaf0qRsz4,1672
|
|
6
|
+
CTkFileDialog/Constants/constants.py,sha256=_SrINT5YaBmOioSjIzESjb3OL1qV8gEEIj-v2bmHz3Q,1679
|
|
7
7
|
CTkFileDialog/icons/bash.png,sha256=XFnNE4o3002WT95lYUt6QzTfFmxJ_9aY9UI2Z0a7O0M,918
|
|
8
8
|
CTkFileDialog/icons/conf.png,sha256=cqUbrcOkymTOitI3DlHDadWLFyR5dfnTBh4lVBhWuuo,17811
|
|
9
9
|
CTkFileDialog/icons/css.png,sha256=0un53aRoy78wtj7GLtgd--oJnglVJjLUvolXCoSG7FA,12660
|
|
@@ -23,7 +23,9 @@ CTkFileDialog/icons/php.png,sha256=zF9fsZSN8JmgyHaX-8DCw8Va-pCnmNbPIpqhlrhO7FA,7
|
|
|
23
23
|
CTkFileDialog/icons/python.png,sha256=tk7T2E_PTGt4E70iEKQ1IlLbzbVS_j_KouieamMYRYY,37415
|
|
24
24
|
CTkFileDialog/icons/text.png,sha256=93GUIQ_se7zCIIuFOzMtjv8Q2SqnANj0jnib7Cm_q4Q,894
|
|
25
25
|
CTkFileDialog/icons/video.png,sha256=ZxenlMzuhcHAgBJJcq_DETrvo0tPygMsZnil-IvypeM,6096
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
ctkfiledialog_plus-0.
|
|
29
|
-
ctkfiledialog_plus-0.
|
|
26
|
+
CTkFileDialog/icons/_IconsMini/file.png,sha256=etgA-7ovYS9MqZpOzuVr-ti1TF8iy3_ytqo1E2ZhepE,1724
|
|
27
|
+
CTkFileDialog/icons/_IconsMini/folder.png,sha256=q6lV_aqEW0-hhQfbn4qzXC-7bcyAkXhH9gBPVooyjbU,2025
|
|
28
|
+
ctkfiledialog_plus-0.6.0.dist-info/METADATA,sha256=SQZBrceVjZDMt-RV5yrAEEgStSH6z7ASborrZM0cSBQ,12754
|
|
29
|
+
ctkfiledialog_plus-0.6.0.dist-info/WHEEL,sha256=YCfwYGOYMi5Jhw2fU4yNgwErybb2IX5PEwBKV4ZbdBo,91
|
|
30
|
+
ctkfiledialog_plus-0.6.0.dist-info/top_level.txt,sha256=ghUwgLRHcaJhcemQYVMRWwbJ8_sWqVyl4S8icnMBI1s,14
|
|
31
|
+
ctkfiledialog_plus-0.6.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|