Skip to content
This repository was archived by the owner on Nov 10, 2021. It is now read-only.

Commit c863c07

Browse files
committed
Release 0.5.0
I added the ability to open images of different formats.
1 parent 2342cc8 commit c863c07

4 files changed

Lines changed: 15 additions & 4 deletions

File tree

File-Manager.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
from colorama import init, Fore, Back, Style
55
from send2trash import send2trash
6+
from PIL import Image
67
import os
78
import os.path
89
import shutil
@@ -316,9 +317,17 @@ def Jump(thispath, Jump_func_text, Directory_text):
316317
FW = FW.lower()
317318
FO.close()
318319

319-
# The part responsible for closing the program.
320+
# This part is responsible for opening the image.
320321

321322
elif function == 9:
323+
All_files(thispath)
324+
file = input(file_text)
325+
img = Image.open(file)
326+
img.show()
327+
328+
# The part responsible for closing the program.
329+
330+
elif function == 10:
322331
print(Fore.RESET)
323332
start = False
324333

Lang_en.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
thispath = 'You are on this path:'
44
Jump_func_text = '1) Move to previous directory \n2) Move to next directory \n'
55
Directory_text = 'Enter directory name: '
6-
function_text = 'File-Manager made by RIDERIUS \nVersion 0.4.0 \n1) View all files \n2) Move between directories \n3) Copy \n4) Move \n5) Change \n6) Delete \n7) Reading a file \n8) File overwrite \n9) Close \n'
6+
function_text = 'File-Manager made by RIDERIUS \nVersion 0.5.0 \n1) View all files \n2) Move between directories \n3) Copy \n4) Move \n5) Change \n6) Delete \n7) Reading a file \n8) File overwrite \n9) Opening an image \n10) Close \n'
77
Copy_func_text = '1) Copy files \n2) Copy directory \n'
88
file_text = 'Enter file name: '
99
CaMO = 'Copy to this directory? (y/n) '

Lang_ru.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
thispath = 'Вы находитесь по этому пути:'
44
Jump_func_text = '1)Переход в предыдущую директорию\n2)Переход в следующую директорию\n'
55
Directory_text = 'Введите название директории: '
6-
function_text = 'File-Manager сделал RIDERIUS\nВерсия 0.4.0\n1)Просмотр всех файлов\n2)Переход между директориями\n3)Копирование\n4)Перемещение\n5)Переменовать\n6)Удаление\n7)Чтение файла\n8)Перезапись файла\n9)Закрыть\n'
6+
function_text = 'File-Manager сделал RIDERIUS\nВерсия 0.5.0\n1)Просмотр всех файлов\n2)Переход между директориями\n3)Копирование\n4)Перемещение\n5)Переменовать\n6)Удаление\n7)Чтение файла\n8)Перезапись файла\n9)Открытие изображения\n10)Закрыть\n'
77
Copy_func_text = '1)Копирование файлов\n2)Копирование директории\n'
88
file_text = 'Введите название файла: '
99
CaMO_text = 'В эту директорию копировать?(y/n) '

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Hi! **File-Manager** is a Windows file manager based on Python 3.8 This was made
1313
3. os
1414
4. os.path
1515
5. shutil
16+
6. PIL
1617

1718
Python 3.8 or higher is recommended for using this program. You need to install the send2trash and colorama modules. You can do this with the following command:
1819

@@ -30,4 +31,5 @@ Python 3.8 or higher is recommended for using this program. You need to install
3031
5. Renaming
3132
6. Removing
3233
7. Reading a file
33-
8. File overwrite
34+
8. File overwrite
35+
9. Opening an image

0 commit comments

Comments
 (0)